import type { Context } from '@deepseek-ai/cordis'; import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'; import type { ConnectionTestResult, MailSnapshot, MailStatus, MailboxPatch } from '../types.js'; /** 设置页使用的全部宿主能力;组件只依赖这个接口。 */ export interface MailGatewayApi { get(): Promise>; saveMailbox(patch: MailboxPatch): Promise>; saveWhitelist(addresses: string[]): Promise>; testConnection(patch: MailboxPatch): Promise>; status(): Promise>; } export declare function createApi(ctx: Context): MailGatewayApi;