import type { IncomingMessage as HttpRequest, ServerResponse } from "node:http"; import type { Session } from "../shared/types.js"; import type { ApiContext } from "./api.js"; import { type ParsedRoute } from "./route-helpers.js"; export interface SearchApiOptions { context: ApiContext; /** The reference-layer session shape, owned by api.ts and shared with the * routes that predate this module. */ compactSessionSummary: (session: Session) => Record; /** Request-bound authority check. It answers on the response itself and * returns undefined once it has; the caller-identity machinery it needs * stays in api.ts. */ resolveNeedsAttentionTarget: (requested: string) => string | undefined; } export declare function handleSearchApi(_req: HttpRequest, res: ServerResponse, route: ParsedRoute, options: SearchApiOptions): Promise; //# sourceMappingURL=search-api.d.ts.map