import type http from "node:http";
import type { CacheState } from "../cache.js";
import type { MediaCache } from "../content/index.js";
import type { DaemonLogger } from "../logging/daemon.js";
import { type DaemonRuntime } from "./server-runtime.js";
import { type SessionEvent } from "./server-session.js";
type ResolveToolPath = (binary: string, env: Record<string, string | undefined>, explicitEnvKey?: string) => string | null;
export declare function handleSummarizeRoute({ req, res, pathname, cors, env, fetchImpl, cacheState, mediaCache, runtime, port, daemonLogger, resolveToolPath, createSessionId, onSessionEvent, }: {
    req: http.IncomingMessage;
    res: http.ServerResponse;
    pathname: string;
    cors: Record<string, string>;
    env: Record<string, string | undefined>;
    fetchImpl: typeof fetch;
    cacheState: CacheState;
    mediaCache: MediaCache | null;
    runtime: DaemonRuntime;
    port: number;
    daemonLogger: DaemonLogger;
    resolveToolPath: ResolveToolPath;
    createSessionId: () => string;
    onSessionEvent?: ((event: SessionEvent, sessionId: string) => void) | null;
}): Promise<boolean>;
export {};
