import type { IncomingMessage, ServerResponse } from 'node:http'; import type { CallerClient } from '@zhixuan92/multi-model-agent-core'; export interface RequestContext { url: URL; cwd?: string; body?: unknown; callerClient: CallerClient; } /** * Raw handler shape used by the C1 RouteDispatcher inside the server. * Server-specific because it carries RequestContext (caller identity, cwd, body). * The core RouteDispatcher is generic; this is the concrete H instantiation * the server registers. */ export type RawHandler = (req: IncomingMessage, res: ServerResponse, params: Record, ctx: RequestContext) => Promise | void; //# sourceMappingURL=types.d.ts.map