import type http from "node:http";
import type { CacheState } from "../cache.js";
export declare function handleAgentRoute({ req, res, url, cors, env, cacheState, createRunId, }: {
    req: http.IncomingMessage;
    res: http.ServerResponse;
    url: URL;
    cors: Record<string, string>;
    env: Record<string, string | undefined>;
    cacheState: CacheState;
    createRunId: () => string;
}): Promise<boolean>;
