import type { ProxyHandle, StartFallbackProxyOptions } from './api-proxy-types.js'; export { buildApiKeyHeaders, buildPassthroughHeaders, isRetryableStatus, looksLikeErrorBody, stripOauthBeta, } from './api-proxy-headers.js'; /** * Start the fallback proxy. * * In `oauth-first` mode the proxy implements live transitions in both * directions: it falls back to the API key on subscription failures, then * periodically probes OAuth so the running claude session can return to * subscription billing as soon as the rate limit clears — no restart. * * In `api-first` mode the proxy always uses the API key. */ export declare function startFallbackProxy(opts: StartFallbackProxyOptions): Promise;