/** * How the runtime should react to a failed provider turn. * * - `crash`: the provider child exited mid-turn; retry the same item quickly. * - `transient`: the provider API failed in a way that usually clears on its * own (5xx, overload, network/stream stalls, safeguard false positives); * retry the same item on the same session with backoff. * - `rate_limited`: the provider refused for quota reasons; defer the item * until the reported reset instant instead of failing it. * - `terminal`: nothing the runtime can do (auth, malformed request); fail * the item and tell the requester. */ export type ProviderRetryClass = 'crash' | 'transient' | 'rate_limited' | 'terminal'; export declare function isProviderCrashError(error: unknown): boolean; export declare function classifyProviderRetry(error: unknown): ProviderRetryClass; /** * When the provider should be tried again after a rate limit. Reads an * explicit `resetsAt` property when the adapter attached one, otherwise parses * the human text Claude Code prints ("resets 2:10pm (Asia/Shanghai)", * "resets at 14:10", "try again in 30 seconds"). Falls back to a fixed delay. */ export declare function providerRateLimitResumeAt(error: unknown, now: Date): Date; //# sourceMappingURL=provider-retry.d.ts.map