/** * `aidlc autopilot wait --pending` — block until something new waits for a person, then exit * (autopilot-watcher-asks-person/AC-16..AC-18). * * The session that started the run runs this as a background command, and its exit is what * wakes that session: a wake-up when something becomes pending, not a timer. It polls the * same list `pending` prints rather than watching files, which miss writes in worktrees they * were not told about (design D6). * * Design: design.md C5 * * @module */ export interface WaitDeps { /** The fingerprints pending now. */ pending: () => string[]; /** Whether the run is still alive. */ running: () => boolean; now: () => number; sleep: (ms: number) => Promise; heartbeatMs: number; intervalMs: number; } export type WaitOutcome = { why: 'pending'; count: number; } | { why: 'heartbeat'; } | { why: 'run-ended'; }; export declare const DEFAULT_HEARTBEAT_MINUTES = 30; export declare const DEFAULT_INTERVAL_SECONDS = 15; export declare function waitPending(deps: WaitDeps): Promise; export declare function waitLine(o: WaitOutcome): string; //# sourceMappingURL=wait.d.ts.map