/** * Label strategy — provider-aware label operations. * * Three strategies handle the differences between email providers: * - ProtonMail Bridge: Labels are IMAP folders under "Labels/" prefix * - Gmail: Uses X-GM-LABELS extension via ImapFlow's useLabels option * - Standard IMAP: Uses RFC 5788 keywords (custom flags) */ import type { ImapFlow } from 'imapflow'; import type { LabelInfo, LabelStrategyType } from '../types/index.js'; export interface LabelStrategy { readonly type: LabelStrategyType; listLabels: (client: ImapFlow) => Promise; addLabel: (client: ImapFlow, emailId: string, mailbox: string, label: string) => Promise; removeLabel: (client: ImapFlow, emailId: string, mailbox: string, label: string) => Promise; createLabel: (client: ImapFlow, name: string) => Promise; deleteLabel: (client: ImapFlow, name: string) => Promise; } export declare function detectLabelStrategy(client: ImapFlow): Promise; //# sourceMappingURL=label-strategy.d.ts.map