import type { Context } from '@deepseek-ai/cordis'; import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol'; import type { Config } from './config.js'; import type { MailGateway } from './gateway.js'; import type { ConnectionTestResult, MailSnapshot, MailStatus, MailboxPatch } from './types.js'; /** Remote 面:设置页的读写、测试与状态查询。 */ export declare class MailGatewayService extends TypertRemoteService { private readonly context; private readonly gateway; private readonly config; private readonly defaultNamespace; static inject: string[]; private namespace?; constructor(context: Context, gateway: MailGateway, config: Config, defaultNamespace: string); get(): Promise; status(): Promise; saveMailbox(patch: MailboxPatch): Promise; saveWhitelist(addresses: string[]): Promise; testConnection(patch: MailboxPatch): Promise; /** profile 里的实例 id 通常就是包名;回退用 schema 里的字段名定位。 */ private resolveNamespace; }