import type { Command } from 'commander'; import { type DispatchRecord } from '../../services/dispatch/dispatch-record-writer.js'; import { summarize, viewSubAgent } from '../../services/code/status-line-renderer.js'; import { type ProgramIO } from '../cli-helpers.js'; declare const DEFAULT_INTERVAL_MS = 10000; declare const DEFAULT_STALE_THRESHOLD_MS: number; type WatchSnapshot = { readonly records: readonly DispatchRecord[]; readonly line: string; readonly summary: ReturnType; readonly views: readonly ReturnType[]; readonly stale: { readonly count: number; readonly thresholdSec: number; readonly customThresholdSec: number; readonly views: readonly ReturnType[]; }; }; declare function parsePositiveMs(raw: string | undefined, fallback: number, flag: string): number; declare function findBatchRecords(projectRoot: string, sessionId: string, batchId: string): DispatchRecord[]; declare function snapshot(records: readonly DispatchRecord[], batchId: string, staleThresholdMs: number, now?: () => Date): WatchSnapshot; declare function isTerminal(records: readonly DispatchRecord[]): boolean; /** Register the independently runnable `peaks heartbeat watch` daemon. */ export declare function registerHeartbeatWatchCommand(parent: Command, io: ProgramIO): void; export declare const __test__: { findBatchRecords: typeof findBatchRecords; isTerminal: typeof isTerminal; parsePositiveMs: typeof parsePositiveMs; snapshot: typeof snapshot; }; export { DEFAULT_INTERVAL_MS, DEFAULT_STALE_THRESHOLD_MS };