import { type IncomingMessage, type ServerResponse } from "node:http"; import { type ApiQueryPriority } from '../api-query-priority.js'; export { configureApiQueryPriority, resolveApiQueryPriority, } from '../api-query-priority.js'; export type { ApiQueryPriority } from '../api-query-priority.js'; import type { RequestContext } from './context.js'; export interface ApiQueryRequestLifecycle { readonly signal: AbortSignal; readonly priority: ApiQueryPriority; readonly source: 'api.query'; dispose(): void; } /** * Own the HTTP-disconnect signal and the exact store-admission options passed * by `/api/query`. Exported so the route boundary can be tested without * replacing the real query engine with a hand-typed error stub. */ export declare function createApiQueryRequestLifecycle(req: IncomingMessage, res: ServerResponse): ApiQueryRequestLifecycle; /** Map retryable, pre-dispatch read shedding without changing write routes. */ export declare function respondIfApiQueryStoreBusy(res: ServerResponse, err: unknown): boolean; export declare function handleQueryRoutes(ctx: RequestContext): Promise; //# sourceMappingURL=query.d.ts.map