import type http from "node:http";
import type { DaemonRuntime } from "./server-runtime.js";
import { type SessionEvent } from "./server-session.js";
export declare function handleRefreshFreeRoute({ req, res, pathname, cors, env, fetchImpl, runtime, createSessionId, onSessionEvent, cleanupDelayMs, }: {
    req: http.IncomingMessage;
    res: http.ServerResponse;
    pathname: string;
    cors: Record<string, string>;
    env: Record<string, string | undefined>;
    fetchImpl: typeof fetch;
    runtime: DaemonRuntime;
    createSessionId: () => string;
    onSessionEvent?: ((event: SessionEvent, sessionId: string) => void) | null;
    cleanupDelayMs?: number;
}): Promise<boolean>;
