import type { IncomingMessage, ServerResponse } from "node:http"; import type { JinnConfig, Session } from "../shared/types.js"; import { type ParsedRoute } from "./route-helpers.js"; import type { ApiContext } from "./api.js"; import type { CallerIdentity } from "./session-comm-guards.js"; export interface TalkApiOptions { getConfig: () => JinnConfig; caller: CallerIdentity; context: ApiContext; /** Start the engine run for a handoff session. The dispatcher owns the engine * wiring, so it passes this in rather than being imported from here. */ runHandoff?: (session: Session, prompt: string) => void; } export declare function reapTalkSessions(): void; export declare function handleTalkApi(req: IncomingMessage, res: ServerResponse, route: ParsedRoute, options: TalkApiOptions): Promise; //# sourceMappingURL=talk-api.d.ts.map