import { type HttpRequestBody, type HttpRequestBodyType } from "@automate.ax/codec/http"; import type { StandardSchemaV1 } from "@standard-schema/spec"; export type HttpRequestPayload = { headers: Record; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; path: string; query: Record; rawBody: Uint8Array; url: URL; }; export type DecodedHttpRequest = { body: TBody; bodyType: HttpRequestBodyType; headers: Record; method: HttpRequestPayload["method"]; path: string; query: Record; rawBody: Uint8Array; url: string; }; /** * Decodes a stored HTTP event and optionally validates its body. * * @param event - Stored request payload. * @param bodySchema - Optional synchronous Standard Schema validator. */ export declare function decodeHttpRequestEvent(event: HttpRequestPayload, bodySchema: TSchema): DecodedHttpRequest>; /** @inheritdoc */ export declare function decodeHttpRequestEvent(event: HttpRequestPayload, bodySchema?: undefined): DecodedHttpRequest; /** @inheritdoc */ export declare function decodeHttpRequestEvent(event: HttpRequestPayload, bodySchema?: StandardSchemaV1): DecodedHttpRequest; //# sourceMappingURL=http-request.d.ts.map