/**
 * User-level storage for ChatGPT/Codex OAuth credentials.
 * Stores access token, refresh token, expiry, and account ID.
 * Stored under config path (e.g. ~/.config/nanocoder/) so they are not in project config.
 */
import type { CodexTokens } from '../auth/chatgpt-codex.js';
/** Shared message when no Codex credential is found. */
export declare function getCodexNoCredentialsMessage(providerName: string): string;
export interface CodexCredential {
    accessToken: string;
    refreshToken?: string;
    expiresAt?: number;
    accountId?: string;
}
/**
 * Get stored Codex credential for a provider name (e.g. "ChatGPT").
 */
export declare function loadCodexCredential(providerName: string): CodexCredential | null;
/**
 * Save Codex credential from device flow tokens.
 */
export declare function saveCodexCredential(providerName: string, tokens: CodexTokens): void;
/**
 * Update specific fields of a stored credential (e.g. after token refresh).
 */
export declare function updateCodexCredential(providerName: string, updates: Partial<CodexCredential>): void;
/**
 * Remove stored credential for a provider name.
 */
export declare function removeCodexCredential(providerName: string): void;
//# sourceMappingURL=codex-credentials.d.ts.map