import type { APIGatewayProxyHandler, APIGatewayProxyEventHeaders } from "aws-lambda"; import { BackendRequest } from "../internal/types"; import { ZodType, z } from "zod"; type Logic, U> = (e: BackendRequest) => string | U | Promise; export declare const qsToJson: (q: string) => Record; declare const createAPIGatewayProxyHandler: , U extends Record>(args: Logic, U> | { logic: Logic, U>; allowedOrigins?: (string | RegExp)[] | undefined; bodySchema?: { parse: (s: string) => z.TypeOf; } | undefined; includeHeaders?: string[] | undefined; validate?: ((args: { body: string | null; headers: APIGatewayProxyEventHeaders; }) => boolean) | undefined; }) => APIGatewayProxyHandler; export default createAPIGatewayProxyHandler;