import type { IncomingMessage as HttpRequest, ServerResponse } from "node:http"; import { type ParsedRoute } from "./route-helpers.js"; import type { WorkItemCaller } from "./work-item-arming.js"; /** * `PUT /api/work-items/:id/kept` — ICI-1357, the operator's Home board. * * Operator-only. Home is the operator's own board, so an employee session * pinning onto it would be putting work in front of a person who never asked * for it. That is role scope rather than a security boundary: nothing an agent * can reach through this route is otherwise protected. * * See route-helpers.ts for the domain-module contract. The caller resolution * and the projection signal arrive as options because api.ts keeps both * module-private, and importing them back would close a cycle. */ export interface WorkItemKeptApiOptions { /** api.ts's work-item caller resolution; undefined once it has answered. */ resolveCaller: () => WorkItemCaller | undefined; /** Tell the live surfaces this Todo's projections changed. */ emitProjection: (id: string) => void; } export declare function handleWorkItemKeptApi(req: HttpRequest, res: ServerResponse, route: ParsedRoute, options: WorkItemKeptApiOptions): Promise; //# sourceMappingURL=work-item-kept-api.d.ts.map