import type http from "node:http"; import { type Provider, type ThinkingLevel } from "@kenkaiiii/gg-ai"; import type { SessionRouteContext } from "./route-context.js"; /** What the user stopped the run with, from the /cancel body; null when unsaid. */ export declare function stopSource(raw: string | null): string | null; /** * What a POST /thinking asks for. An empty body cycles to the next level (the * footer's original click-to-cycle); `{"level": ""}` sets that level and * `{"level": null}` turns thinking off, so a picker can jump straight to one. * A level the current model doesn't support is refused, not clamped. */ export declare function resolveThinkingRequest(provider: Provider, model: string, current: ThinkingLevel | undefined, raw: string): { ok: true; level: ThinkingLevel | undefined; } | { ok: false; error: string; }; export declare function handleRunControlRoutes(ctx: SessionRouteContext, req: http.IncomingMessage, res: http.ServerResponse, url: string, method: string): boolean;