export type MailboxSyncOrderEntry = { mailboxId: string; fullPath: string; specialUse?: readonly string[]; }; /** * Sync priority for a single mailbox. INBOX always leads; otherwise the * mailbox's special-use flags resolve to a priority, defaulting to * NORMAL_PRIORITY for plain user folders and unflagged mailboxes. When a * mailbox carries both a leading flag (Sent/Drafts) and a trailing one * (Junk/Trash) — rare, but possible with misconfigured servers — the trailing * one wins: de-prioritising a bulk folder is the safer first-impression * choice. */ export declare const mailboxSyncPriority: (entry: MailboxSyncOrderEntry) => number; /** * Order mailboxes for sync fan-out: INBOX first, then Sent/Drafts, then normal * folders, with Junk/Spam and Trash last. Ties break alphabetically by * fullPath so the order is deterministic. */ export declare const orderMailboxesForSync: (mailboxes: readonly T[]) => T[];