import type { ReadyCheck } from '../config/schema.js'; export interface ProbeResult { ok: boolean; reason?: string; } export interface HealthProbe { readonly intervalMs: number; readonly timeoutMs: number; check(): Promise; feedLine?(line: string): void; } export declare function createProbe(config: Exclude): HealthProbe; /** * Extract the local listen endpoint a ready check targets, if any. Used to * pre-flight that the port is actually free before spawning — otherwise a * stale process on the same port would let the probe report a false "ready" * while the newly spawned command fails to bind. Returns null for checks * that don't pin a local port (log-pattern, custom, or remote-host probes). */ export declare function readyCheckLocalEndpoint(ready: ReadyCheck | undefined): { host: string; port: number; } | null; //# sourceMappingURL=checks.d.ts.map