/** * Secure on-disk store for subscription OAuth credentials (Claude Pro/Max, * ChatGPT Plus/Pro). Replaces the VSCode SecretStorage the reference flow used * with a `chmod 600` JSON file under `.dql/`, mirroring how `provider-settings.json` * already guards API keys. Tokens never leave the machine. */ export interface ClaudeOAuthCredentials { type: 'claude'; access_token: string; refresh_token: string; /** ISO-8601 expiry timestamp. */ expired: string; email?: string; } export interface CodexOAuthCredentials { type: 'openai-codex'; access_token: string; refresh_token: string; /** Expiry as a Unix epoch in milliseconds. */ expires: number; email?: string; accountId?: string; } export type OAuthProviderKey = 'claude' | 'codex'; export declare function oauthCredentialsPath(projectRoot: string): string; export declare function getClaudeCredentials(projectRoot: string): ClaudeOAuthCredentials | null; export declare function setClaudeCredentials(projectRoot: string, creds: ClaudeOAuthCredentials): void; export declare function getCodexCredentials(projectRoot: string): CodexOAuthCredentials | null; export declare function setCodexCredentials(projectRoot: string, creds: CodexOAuthCredentials): void; export declare function clearOAuthProvider(projectRoot: string, key: OAuthProviderKey): void; //# sourceMappingURL=oauth-store.d.ts.map