import type { AgentRuntime, AgentRuntimeInput, AgentRuntimeResult } from '../providers/contract.js'; import { type ProviderSessionCorruptionError } from '../providers/session-corruption.js'; export declare function runProviderWithCrashRetries(input: { agentId: string; agentRuntime: AgentRuntime; buildInput: (retryNotice?: string) => Promise; itemId?: string; onFinalFailureRecorded?: () => void; recoverCorruptSession?: (error: ProviderSessionCorruptionError) => Promise; signal: AbortSignal; }): Promise; export declare function recordFinalRuntimeFailure(input: { agentId: string; agentRuntime: AgentRuntime; error: unknown; itemId?: string; providerFailure?: boolean; retryAttempts: number; }): Promise; //# sourceMappingURL=provider-runner.d.ts.map