import type { IncomingMessage, ServerResponse } from 'node:http'; import type { ServerConfig } from '@zhixuan92/multi-model-agent-core'; import type { RouteDispatcher } from '@zhixuan92/multi-model-agent-core'; import type { RawHandler } from './types.js'; export declare function setDraining(d: boolean): void; export declare function isDraining(): boolean; export interface PipelineConfig { loopbackOnlyPaths: ReadonlySet; authExemptPaths: ReadonlySet; cwdRequiredPaths: ReadonlySet; /** Routes that REQUIRE the X-MMA-Client header, so wire telemetry's `client` * column is never anonymous for a billed run. */ clientRequiredPaths: ReadonlySet; } export declare function handleRequest(router: RouteDispatcher, token: string, req: IncomingMessage, res: ServerResponse, cfg: ServerConfig, pipelineCfg: PipelineConfig): Promise; //# sourceMappingURL=request-pipeline.d.ts.map