export interface SpawnEmitResult { ok: boolean; stderr: string; } export interface SpawnValidateResult { ok: boolean; reason: string; } /** * Spawn `store-cli.cjs emit ` synchronously. * * Uses `STORE_CLI_EMIT_TIMEOUT_MS` (10 s). Fail-closed: returns ok=false on * any non-zero exit or error signal. * * @param storeCli Absolute path to store-cli.cjs. * @param sprintId Sprint ID string (e.g. "FORGE-S25"). * @param event Event payload object; JSON.stringify'd before dispatch. * @param cwd Working directory for the subprocess. */ export declare function spawnStoreCliEmit(storeCli: string, sprintId: string, event: unknown, cwd: string): SpawnEmitResult; /** * Spawn `store-cli.cjs read ` synchronously and parse stdout * as JSON. * * Fail-open: returns null on non-zero exit, error signal, or JSON parse error. * Callers that need fail-open semantics (like transition-guard) rely on this. * * @param storeCli Absolute path to store-cli.cjs. * @param entity Entity type: "task" | "sprint" | "bug" | … * @param entityId Entity ID string. * @param cwd Working directory for the subprocess. */ export declare function spawnStoreCliRead(storeCli: string, entity: string, entityId: string, cwd: string): Record | null; /** * Spawn `store-cli.cjs validate ` synchronously. * * Returns ok=false with a reason string on non-zero exit. * * @param storeCli Absolute path to store-cli.cjs. * @param entity Entity type: "task" | "sprint" | "bug" | "event" | … * @param payload Payload object or pre-serialised JSON string. * @param cwd Working directory for the subprocess. */ export declare function spawnStoreCliValidate(storeCli: string, entity: string, payload: unknown, cwd: string): SpawnValidateResult;