export interface LocalOAuthCallbackOptions {
    readonly state: string;
    readonly portRange: readonly [number, number];
    readonly timeoutMs: number;
    /** Provider name for customized success page (e.g., 'codex' for OpenAI/Codex) */
    readonly provider?: 'codex' | 'claude';
}
export interface LocalOAuthCallbackServer {
    readonly redirectUri: string;
    waitForCallback(): Promise<{
        code: string;
        state: string;
    }>;
    shutdown(): Promise<void>;
}
export declare const startLocalOAuthCallback: (options: LocalOAuthCallbackOptions) => Promise<LocalOAuthCallbackServer>;
