import type { AccountConfig } from "./accounts.js"; import type { MailProvider } from "./providers/interface.js"; export interface ProviderHooks { /** IMAP connections time out after ~30 min idle and emit `close`; the server uses this to evict its cache. */ onImapClose?: () => void; } export declare function createProvider(alias: string, config: AccountConfig, configDir: string, hooks?: ProviderHooks): Promise;