import type { StateDatabase } from "./database.js"; export type AttemptClock = { now(): number; monotonic(): number; }; /** Records active execution in the existing database. Wall time never determines the budget. */ export declare class AttemptTime { private readonly state; private readonly clock; private readonly anchors; constructor(state: StateDatabase, clock?: AttemptClock); start(attemptId: string): void; sample(): void; stop(attemptId: string): void; recover(): void; private sampleInterval; private openIntervals; } export declare function closeRunTime(state: StateDatabase, runId: string): void; /** Freeze the last host sample when an attempt settles outside its model turn. */ export declare function closeAttemptTime(state: StateDatabase, attemptId: string): void;