import { spawnProcess } from "@claudexor/core"; /** Claude Code refreshes OAuth access tokens inside this five-minute window. */ export declare const CLAUDE_OAUTH_REFRESH_SKEW_MS: number; export declare const CLAUDE_AUTH_REFRESH_TERMINATION_UNCONFIRMED = "claude_oauth_refresh_termination_unconfirmed"; export declare function claudeOauthAccessTokenIsFresh(expiresAtMs: number | null, nowMs?: number): boolean; export interface ClaudeNativeAuthRefreshDeps { spawn: typeof spawnProcess; nowMs: () => number; sleep: (ms: number) => Promise; bin: string; cwd: string; timeoutMs: number; pollMs: number; } /** * Wake Claude Code's own OAuth refresher without sending a prompt or making a * model request. `mcp serve` is the vendor's documented, long-lived stdio * command: holding stdin open gives its startup refresh time to finish under * Claude Code's credential lock. Claudexor observes expiry metadata only; * Claude Code remains the sole reader/writer of the refresh token and store. */ export declare function refreshClaudeNativeAuth(env: Record, readExpiresAtMs: () => Promise, overrides?: Partial): Promise; //# sourceMappingURL=auth-refresh.d.ts.map