export declare const OPENAI_CODEX_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann";
export declare const OPENAI_CODEX_AUTHORIZE_URL = "https://auth.openai.com/oauth/authorize";
export declare const OPENAI_CODEX_TOKEN_URL = "https://auth.openai.com/oauth/token";
export declare const OPENAI_CODEX_REDIRECT_URI = "http://localhost:1455/auth/callback";
export interface OpenAICodexLoginStart {
    readonly authorizationUrl: string;
    readonly state: string;
    readonly verifier: string;
    readonly redirectUri: string;
}
export interface OpenAICodexTokenResult {
    readonly accessToken: string;
    readonly refreshToken: string;
    readonly tokenType: string;
    readonly expiresAt: number;
    readonly scopes?: readonly string[];
}
export declare function beginOpenAICodexLogin(): OpenAICodexLoginStart;
export declare function exchangeOpenAICodexCode(code: string, verifier: string): Promise<OpenAICodexTokenResult>;
export declare function refreshOpenAICodexToken(refreshToken: string): Promise<OpenAICodexTokenResult>;
//# sourceMappingURL=openai-codex-auth.d.ts.map