/** * [ref] A9 域模块 —— sideQuery 一次性问答面([ref],core 1.361)。 * * 路由:`POST /v1/side-query` —— 无 session / 无工具执行 / 无 policy gate / 无引擎侧记账 / 无流式的 * 一次性 brain 路由问答(v1 刻意面 = core 规格 side-query.d.ts)。cli 壳侧十几个 utility(标题/摘要/ * 权限解释…)的传输层正解。位置在全局 service-credential 门**之后**、任务提交面之前;`isBillableSubmitPath` * 已含本路径,故 no-token 503 / draining / model-ready 三闸在进本域前就已生效。本域零可变状态。 */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { RouteCtx, RouteMatch, RouteIdsOf } from "../route-ctx.js"; /** 表内=core 的前置校验形(客户端可改请求)⇒ 400;表外一律 500。 */ export declare function isCorePreflightValidationError(message: string): boolean; /** 供跨仓锚门读:门要拿这张表去装机的 core 里逐条对账(见上方 doc)。 */ export declare const CORE_PREFLIGHT_VALIDATION_ANCHORS: readonly string[]; /** 路由体 = 从 `server.ts` 的 `handle()` 里**整段剪切**过来的原文(唯一改动:统一去缩进两格)。 */ export declare function handleSideQuery(req: IncomingMessage, res: ServerResponse, match: RouteMatch, ctx: RouteCtx): Promise; export declare const SIDE_QUERY_ROUTES: readonly [{ readonly id: "side-query"; readonly path: "/v1/side-query"; readonly billable: true; readonly methods: readonly ["POST"]; }]; /** 本域可分派行的 `id` 闭集 —— handler 的 `switch` 按它判穷尽(漏一口 = 编译红)。 */ export type SideQueryRouteId = RouteIdsOf; //# sourceMappingURL=side-query.d.ts.map