export interface AccountRepository { /** Raw filenames in the accounts dir, or [] if it can't be read. */ list(accountsDirPath: string): string[]; /** Parsed snapshot for `email`, or null when the file does not exist. * Throws on parse errors and non-ENOENT fs errors. */ read(email: string, accountsDirPath: string): Record | null; /** Atomically write the snapshot payload for `email`. */ write(email: string, accountsDirPath: string, payload: Record): void; /** Delete `email`'s snapshot. Throws "No saved account for " on ENOENT. */ remove(email: string, accountsDirPath: string): void; /** Read a snapshot for the load() path: rejects symlinks and a missing file * with explicit errors (security-critical). */ loadRaw(email: string, accountsDirPath: string): Record; } /** Production default: real filesystem under the accounts dir. */ export declare const fsAccountRepo: AccountRepository;