import { type BlockKind } from "../work-items/blocks.js"; import { type TodoStopCause } from "../work-items/stop-cause.js"; /** * The status route's body fields, read once and validated together. * * They are the parts of `POST|PUT /api/work-items/:id/status` that say HOW a * move was meant rather than where it goes: the reason, the kind of block, and * the two authority flags. The route keeps the lifecycle decisions; this keeps * the reading of them out of a handler already long enough to hide one. */ export interface StatusUpdateFields { /** Trimmed; empty when absent. */ note: string; blockKind: BlockKind | undefined; /** Undefined when the move names neither a park nor a hint. */ stopCause: TodoStopCause | undefined; asOperator: boolean; cascade: boolean; acknowledgeEscalated: boolean; } export type StatusUpdateFieldsResult = ({ ok: true; } & StatusUpdateFields) | { ok: false; status: number; error: string; }; export declare function parseStatusUpdateFields(body: Record, target: string, isOperatorPut: boolean): StatusUpdateFieldsResult; //# sourceMappingURL=work-item-status-fields.d.ts.map