export type StoreWriteDebugMeta = { reason?: string; source?: string; actionType?: string; inputStage?: string; parsedKey?: string; }; export type AccountEntry = { name: string; refresh: string; access: string; expires: number; accountId?: string; enterpriseUrl?: string; user?: string; email?: string; orgs?: string[]; addedAt?: number; lastUsed?: number; source?: "auth" | "manual"; providerId?: string; quota?: { plan?: string; sku?: string; reset?: string; updatedAt?: number; error?: string; snapshots?: { premium?: { entitlement?: number; remaining?: number; used?: number; unlimited?: boolean; percentRemaining?: number; }; chat?: { entitlement?: number; remaining?: number; used?: number; unlimited?: boolean; percentRemaining?: number; }; completions?: { entitlement?: number; remaining?: number; used?: number; unlimited?: boolean; percentRemaining?: number; }; }; }; models?: { available: string[]; disabled: string[]; updatedAt?: number; error?: string; }; }; export type StoreFile = { active?: string; activeAccountNames?: string[]; accounts: Record; modelAccountAssignments?: Record; autoRefresh?: boolean; refreshMinutes?: number; lastAccountSwitchAt?: number; lastQuotaRefresh?: number; networkRetryEnabled?: boolean; syntheticAgentInitiatorEnabled?: boolean; experimentalSlashCommandsEnabled?: boolean; experimentalStatusSlashCommandEnabled?: boolean; }; export declare function storePath(): string; export declare function authPath(): string; export declare function parseStore(raw: string): StoreFile; export declare function readStore(filePath?: string): Promise; export declare function readStoreSafe(filePath?: string): Promise; export declare function readStoreSafeSync(filePath?: string): StoreFile | undefined; export declare function readAuth(filePath?: string): Promise>; export declare function writeStore(store: StoreFile, options?: { filePath?: string; debug?: StoreWriteDebugMeta; }): Promise;