export interface LocalCodexCredentialStatus { state: "missing" | "invalid" | "installed" | "expired"; accountId?: string; expiresAt?: number; matchesExpectedAccount: boolean | null; usable: boolean; } export declare function backupCodexFileCredentials(env?: NodeJS.ProcessEnv): Promise<{ authPath: string; backupPath: string; configPath: string; action: "preserved"; } | { authPath: string; backupPath: string; configPath: string; action: "missing"; } | { authPath: string; backupPath: string; configPath: string; action: "created"; }>; export declare function restoreCodexFileCredentials(env?: NodeJS.ProcessEnv): Promise<{ authPath: string; backupPath: string; configPath: string; action: "restored"; }>; export declare function inspectLocalCodexCredentialStatus(expectedAccountId?: string, env?: NodeJS.ProcessEnv): Promise; export declare function codexFileCredentialsMatchAccount(accountId: string, env?: NodeJS.ProcessEnv): Promise; export declare function writeCodexChatgptFileCredentials(credentials: { accessToken: string; idToken: string; accountId: string; }, now?: number, env?: NodeJS.ProcessEnv): Promise; export declare function resetManagedCodexFileCredentials(accountId?: string, env?: NodeJS.ProcessEnv): Promise<{ authPath: string; backupPath: string; configPath: string; action: "restored"; } | { authPath: string; backupPath: string; configPath: string; action: "removed"; } | { authPath: string; backupPath: string; configPath: string; action: "unchanged"; }>;