import type { DelegationCheckpointState, FailureCheckpointResult } from "./types.js"; /** * Tracks failure checkpoints for delegated sessions. * * At each checkpoint (60, 120, 180, 300 seconds), compares the current * action count against the previous checkpoint's count. If unchanged, * increments the failure level. At level 4 (300s), injection stops. */ export declare class FailureCheckpointTracker { private readonly checkpoints; /** Initialize checkpoint state for a delegation. */ start(delegationId: string): void; /** * Evaluate a failure checkpoint. * * Called when elapsedSeconds matches one of the failure checkpoint * thresholds. Compares currentActionCount to the stored previous count. * If equal, increments failureLevel and invokes onFailure. */ check(delegationId: string, elapsedSeconds: number, currentActionCount: number, onFailure: (result: FailureCheckpointResult) => void): void; /** Returns true if thin-line injection should continue for this delegation. */ shouldInject(delegationId: string): boolean; /** Mark a delegation as completed and stop tracking. */ stop(delegationId: string): void; /** Return the current checkpoint state for a delegation. */ getState(delegationId: string): DelegationCheckpointState | undefined; } //# sourceMappingURL=escalation-timer.d.ts.map