import type { AgentHeartbeatResult } from '../agent/index.js';
import type { HeartbeatTask } from './types.js';
export declare class HeartbeatTaskStateProjector {
    static normalize(task: HeartbeatTask): HeartbeatTask;
    static markRunning(args: {
        task: HeartbeatTask;
        now: Date;
        loadedCheckpoint: boolean;
    }): HeartbeatTask;
    static afterResult(args: {
        task: HeartbeatTask;
        result: AgentHeartbeatResult;
        now: Date;
        loadedCheckpoint: boolean;
    }): HeartbeatTask;
    static afterFailure(args: {
        task: HeartbeatTask;
        error: unknown;
        now: Date;
        retryMs: number;
    }): HeartbeatTask;
    private static normalizeState;
    private static projectResult;
    private static isTerminalDecision;
    private static nextDelayMs;
    private static formatDelay;
}
//# sourceMappingURL=task-state.d.ts.map