/** * runSensor — spawn the workflow-status sensor, validate its output. * * Spawns ` scripts/workflow-status.mjs --json-only` in `cwd`, * collects stdout, parses JSON, validates against the envelope v2 strict * schema, and checks for degradations. * * Any failure path (spawn error, non-JSON, invalid JSON, schema invalid, * degradations present) returns `{ ok: false, refusal: "sensor-degraded", detail }`. */ import type { SensorResult } from "./types.js"; export declare function runSensor(cwd: string, bin: "bun" | "node"): Promise;