import type { ConfigResolver } from '../service/facade.js'; import type { CompleteEnrollmentInput, EnrollmentProvider, EnrollmentSession, PreparedCredential, RefreshInput, ResolvedProviderMetadata, StartEnrollmentInput } from './contracts.js'; export declare const CODEX_AUTH_ISSUER = "https://auth.openai.com"; export declare const CODEX_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann"; export declare const CODEX_DEVICE_AUTH_URL = "https://auth.openai.com/api/accounts/deviceauth/usercode"; export declare const CODEX_DEVICE_TOKEN_URL = "https://auth.openai.com/api/accounts/deviceauth/token"; export declare const CODEX_OAUTH_TOKEN_URL = "https://auth.openai.com/oauth/token"; export declare const CODEX_VERIFICATION_URL = "https://auth.openai.com/codex/device"; export interface CodexEnrollmentOptions { clientId?: string; configResolver?: ConfigResolver; fetchFn?: typeof fetch; } export declare class CodexEnrollmentProvider implements EnrollmentProvider { private readonly defaultClientId; private readonly configResolver?; private readonly fetchFn; private readonly sessions; private sequence; constructor(options?: CodexEnrollmentOptions); private getClientId; start(input: StartEnrollmentInput): Promise; pollForCompletion(enrollmentId: string, maxAttempts?: number): Promise<{ accountId: string; label: string; ownerScope: string; credential?: PreparedCredential; }>; complete(input: CompleteEnrollmentInput): Promise; resolve(credential: PreparedCredential): Promise; refresh(input: RefreshInput): Promise; cancel(enrollmentId: string): Promise; } //# sourceMappingURL=codex.d.ts.map