import type { ToolArgumentExecutionOutcome, ToolArgumentTeachState, ToolArgumentValidationTelemetryEvent } from "@caupulican/pi-ai"; import { type ToolArgumentValidationLogRecord } from "./tool-recovery-log-records.ts"; export interface ToolArgumentValidationTeachEfficacy { recurrenceBefore: number; recurrenceAfter: number; repairedThenSucceeded: number; repairedThenFailed: number; repairedThenNotRun: number; } export interface ToolArgumentValidationStats { clean: number; repaired: number; bounced: number; failureModes: Record; repairsApplied: Record; taught: Record; executionOutcome: Record; teachEfficacy: Record; } export interface ToolArgumentValidationRecord extends ToolArgumentValidationTelemetryEvent { version: 1; } interface PersistedToolRecoveryStats { version: 1; sessionId: string; lastRecordSequence: number; stats: ToolArgumentValidationStats; } export declare function createEmptyToolArgumentValidationStats(): ToolArgumentValidationStats; export declare function consumeToolArgumentValidationRecord(stats: ToolArgumentValidationStats, record: ToolArgumentValidationRecord): void; export declare function getToolRecoveryRecordSequence(record: Pick): number; export declare function readPersistedToolRecoveryStats(eventLogPath: string, sessionId: string): PersistedToolRecoveryStats | undefined; export declare function updatePersistedToolRecoveryStats(eventLogPath: string, record: ToolArgumentValidationLogRecord): void; export {}; //# sourceMappingURL=tool-recovery-stats.d.ts.map