/** * Types for the plain-JavaScript readiness helper (PB-26-904). It stays a * `.mjs` so the process wrappers can run it without a build step, so the * declaration lives beside it rather than enabling `allowJs` project-wide. */ export interface ReadinessChild { exitCode: number | null; diagnostics: { stdout: string; stderr: string }; } export function waitForFile( path: string, child: ReadinessChild, timeoutMs: number, pollMs?: number, ): Promise;