export interface ParsedRequest { method: string; /** The `?op=` query action for the byte paths (`download` / `upload` / `proxy`). */ action: string | null; query: URLSearchParams; origin: string | null; rangeHeader: string | null; /** Parsed JSON body for a POST action; `undefined` otherwise. */ json: unknown; /** Raw body stream for a byte-path PUT; `null` otherwise. */ bodyStream: ReadableStream | null; contentType: string | null; contentLength: number | undefined; signal: AbortSignal; } export type ResultModel = { kind: "json"; status: number; body: unknown; } | { kind: "empty"; status: number; headers?: Record; } | { kind: "redirect"; status: number; location: string; } | { kind: "stream"; status: number; headers: Record; stream: ReadableStream; }; export declare const parseRequest: (req: Request) => Promise; export declare const buildResponse: (model: ResultModel) => Response; //# sourceMappingURL=web.d.ts.map