import { type ServerDeps } from '../server.js'; /** Minimal shape of a Lambda Function URL (payload v2) event. Typed locally to avoid a dependency. */ export interface FunctionUrlEvent { rawPath?: string; rawQueryString?: string; headers?: Record; body?: string; isBase64Encoded?: boolean; requestContext?: { http?: { method?: string; }; }; } export interface FunctionUrlResult { statusCode: number; headers: Record; body: string; } /** Test hook — the cache is module-scope and vitest runs share the module. */ export declare function _clearResolveCacheForTests(): void; /** * Build the handler with injectable server deps (tests pass a fake `fetchImpl`) and env. * The default export below is the production wiring. */ export declare function makeHandler(deps?: ServerDeps, env?: NodeJS.ProcessEnv): (event: FunctionUrlEvent) => Promise; export declare const handler: (event: FunctionUrlEvent) => Promise;