import { type MailboxStatus } from "../auth/mailbox-registry.js"; export interface MailboxListItem { /** Opaque directory handle under mailboxes/ — stable even when unreadable. */ mailboxKey: string; /** The mailbox email address, when the blob is readable. */ mailbox: string | null; graphUserId: string | null; scopes: string[]; tokenExpSec: number | null; refreshExpired: boolean; readable: boolean; /** Usability at a glance — only `ok` is addressable by email right now. */ status: MailboxStatus; } export interface MailboxListResult { count: number; /** How many blobs are on disk but do not decrypt/parse — an orphaned store. */ unreadable: number; /** How many mailboxes are usable by their email now (status `ok`). A record * present but blank-email or refresh-expired counts in `count`, not here — so * a bare `count` is never mistaken for "connected and addressable". */ addressable: number; mailboxes: MailboxListItem[]; } /** * List every Outlook mailbox attached to this account. Local only — reads the * on-disk stores, never Graph — so it reconciles what is stored against what the * agent can address even when Graph is unreachable. An unreadable blob is * surfaced (`readable:false`) rather than dropped, closing the no-event blind * spot where a mailbox silently falls out of addressability. */ export declare function runMailboxList(accountId: string, accountsDir: string): MailboxListResult; //# sourceMappingURL=mailbox-list.d.ts.map