/** * Validate spawn readiness — unified pre-flight hygiene runner (T10451). * * Runs all 3 gates in parallel: * 1. Changeset lint (via scripts/lint-changesets.mjs) * 2. Changelog drift (CHANGELOG.md has current version header) * 3. Worktree location (cwd matches expected worktree path) * * Returns non-zero exit code on any failure. * * @task T10451 * @saga T10431 */ /** Severity level for a gate result. */ type Severity = 'error' | 'warn'; /** Result from a single hygiene gate. */ export interface HygieneGateResult { /** Gate name. */ name: string; /** Whether the gate passed. */ passed: boolean; /** Human-readable message. */ message: string; /** Severity if failed. */ severity: Severity; } /** Overall result from the spawn-readiness check. */ export interface SpawnReadinessResult { /** Per-gate results. */ gates: HygieneGateResult[]; /** True only if ALL gates passed. */ allPassed: boolean; /** ISO timestamp of the check. */ checkedAt: string; } /** * Run the full spawn-readiness hygiene check. * * @param projectRoot - Absolute path to project root (default: process.cwd()). * @param worktreePath - Expected worktree path (optional). * @returns Structured result with per-gate details. */ export declare function runSpawnReadinessHygiene(projectRoot?: string, // CWD-OK: public API default — caller passes explicit root when invoked from non-cwd context worktreePath?: string): Promise; /** * CLI-friendly entry point. Prints results and exits with code 1 on failure. * * @param projectRoot - Absolute path to project root. * @param worktreePath - Expected worktree path (optional). */ export declare function runSpawnReadinessHygieneCli(projectRoot?: string, // CWD-OK: CLI entry point default — `cleo hygiene` invoked from project cwd worktreePath?: string): Promise; export {}; //# sourceMappingURL=validate-spawn-readiness.d.ts.map