process-readiness.d.mts

479 B · raw

1/**2 * Types for the plain-JavaScript readiness helper (PB-26-904). It stays a3 * `.mjs` so the process wrappers can run it without a build step, so the4 * declaration lives beside it rather than enabling `allowJs` project-wide.5 */67export interface ReadinessChild {8  exitCode: number | null;9  diagnostics: { stdout: string; stderr: string };10}1112export function waitForFile(13  path: string,14  child: ReadinessChild,15  timeoutMs: number,16  pollMs?: number,17): Promise<string>;