import type { IncomingMessage, ServerResponse } from "node:http"; import type { RouteCtx, RouteMatch, RouteIdsOf } from "../route-ctx.js"; /** SVC-5 的 steer 路——`handle()` 里位置在 tasks/runs 之后(鉴权门之后),故是**独立**的域入口。 */ /** 路由体 = 从 `server.ts` 的 `handle()` 里**整段剪切**过来的原文(唯一改动:统一去缩进两格)。裸 `return;` * = 「本域已应答」;走到函数尾才是「没匹配上」。跨域的东西一律在首行解构出来。 */ export declare function handleWorkflows(req: IncomingMessage, res: ServerResponse, match: RouteMatch, ctx: RouteCtx): Promise; /** 同上纪律(SVC-5 steer 段)。 */ export declare function handleWorkflowAgentSteer(req: IncomingMessage, res: ServerResponse, match: RouteMatch, ctx: RouteCtx): Promise; export declare const WORKFLOWS_ROUTES: readonly [{ readonly id: "workflows-list"; readonly path: "/v1/workflows"; readonly methods: readonly ["GET"]; }, { readonly id: "workflow-stream"; readonly pattern: RegExp; readonly label: "/v1/workflows/:id/$sub"; readonly methods: readonly ["GET"]; }, { readonly id: "workflow-journal"; readonly pattern: RegExp; readonly label: "/v1/workflows/:id/$sub"; readonly methods: readonly ["GET"]; }, { readonly id: "workflow-detail"; readonly pattern: RegExp; readonly label: "/v1/workflows/:id"; readonly methods: readonly ["GET"]; }]; /** 本域可分派行的 `id` 闭集 —— handler 的 `switch` 按它判穷尽(漏一口 = 编译红)。 */ export type WorkflowsRouteId = RouteIdsOf; export declare const WORKFLOW_AGENT_STEER_ROUTES: readonly [{ readonly id: "workflow-agent-steer"; readonly pattern: RegExp; readonly label: "/v1/workflows/:id/agents/:aid/steer"; readonly methods: readonly ["POST"]; }]; export type WorkflowAgentSteerRouteId = RouteIdsOf; //# sourceMappingURL=workflows.d.ts.map