/** * Persistence for config and per-account tokens. * * Layout, fixed by design so the CLI and the server always agree: * * ~/.gmail-multi-mcp/ * config.json OAuth client + the list of accounts * tokens/.json one refresh token per account * * Tokens are never written to the project directory: a repository is the last * place a refresh token should live. */ import type { AccountConfig, AccountId, Config, StoredTokens } from '../gmail/types.js'; export declare const ROOT_DIR: string; export declare const CONFIG_PATH: string; export declare const TOKENS_DIR: string; export declare function readConfig(): Promise; export declare function writeConfig(config: Config): Promise; export declare function readTokens(email: AccountId): Promise; export declare function writeTokens(email: AccountId, tokens: StoredTokens): Promise; export declare function deleteTokens(email: AccountId): Promise; export declare function listTokenFiles(): Promise; /** Adds an account, or updates it in place if the email is already registered. */ export declare function upsertAccount(account: AccountConfig): Promise; export declare function removeAccount(email: AccountId): Promise; /** * Resolves an account reference to a configured email. * * Accepts the full address or an alias, so an agent can say "work" instead of * memorising the address. */ export declare function resolveAccount(reference: AccountId): Promise; //# sourceMappingURL=token-store.d.ts.map