import type { ProviderAttemptRecord } from "./provider.js";
import type { AttemptRecord } from "../evidence/attempt-record.js";
export interface AttemptRecorderOptions {
    runsDir?: string;
}
export declare function createAttemptRecorder(options?: AttemptRecorderOptions): {
    record: (attempt: ProviderAttemptRecord | AttemptRecord) => void;
    startAttempt: (runId: string, nodeId: string, attempt: number, providerId: string) => ProviderAttemptRecord;
    completeAttempt: (record: ProviderAttemptRecord, success: boolean, exitCode?: number, fallbackFrom?: string, fallbackReason?: string) => ProviderAttemptRecord;
};
