import type { FileSystem } from "../ports/filesystem.js"; /** A recorded tool call with its expected result. */ export interface RecordedToolCall { readonly tool: string; readonly args: Readonly>; readonly expectedResult: Readonly>; } /** A single mismatch between expected and actual. */ export interface ReplayFailure { readonly index: number; readonly tool: string; readonly expected: Readonly>; readonly actual: Readonly>; } /** Result of replaying a scenario. */ export interface ReplayResult { readonly passed: boolean; readonly total: number; readonly matched: number; readonly mismatched: number; readonly failures: readonly ReplayFailure[]; } /** Handler that executes a tool call and returns the result. */ export type ToolCallHandler = (tool: string, args: Readonly>) => Promise>>; /** * Create a mock FileSystem from a snapshot map. * * Keys are file paths, values are file contents. Provides readFile, * readdir, stat, and other FileSystem methods backed by the map. */ export declare function createSnapshotFs(files: Readonly>): FileSystem; /** * Replay a sequence of recorded tool calls against a handler. * * Compares each actual result to the expected result from the * recording. Returns pass/fail with details on mismatches. */ export declare function replayToolCalls(calls: readonly RecordedToolCall[], handler: ToolCallHandler): Promise; //# sourceMappingURL=deterministic-replay.d.ts.map