/** * [ref] A9 域模块 —— 观测只读面。 * * 路由:`GET /v1/outcomes`(operator-only 机械信号聚合)、`GET /v1/usage`(per-principal 累计花费读面, * 与 quotaExceeded 门同键、只读不消费)。本域零可变状态。 */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { RouteCtx, RouteMatch, RouteIdsOf } from "../route-ctx.js"; /** 路由体 = 从 `server.ts` 的 `handle()` 里**整段剪切**过来的原文(唯一改动:统一去缩进两格)。裸 `return;` * 的语义原样 =「本域已应答」;走到函数尾才是「没匹配上」,置 `miss.fell` 交回装配器继续下一个域。 * 跨域的东西(deps / 助手 / 单域状态)一律在首行解构出来,于是下面每一行都逐字不变。 */ export declare function handleObservability(req: IncomingMessage, res: ServerResponse, match: RouteMatch, ctx: RouteCtx): Promise; export declare const OBSERVABILITY_ROUTES: readonly [{ readonly id: "outcomes"; readonly path: "/v1/outcomes"; readonly methods: readonly ["GET"]; }, { readonly id: "usage"; readonly path: "/v1/usage"; readonly methods: readonly ["GET"]; }]; /** 本域可分派行的 `id` 闭集 —— handler 的 `switch` 按它判穷尽(漏一口 = 编译红)。 */ export type ObservabilityRouteId = RouteIdsOf; //# sourceMappingURL=observability.d.ts.map