import { type Try } from '@skyleague/axioms'; import type { APIGatewayProxyEventV2Schema } from '../../../../aws/http.js'; import type { APIGatewayProxyEventSchema } from '../../../../aws/rest.js'; import type { MaybeGenericParser } from '../../../../parsers/types.js'; import type { SecurityRequirements } from '../../types.js'; import type { AnyAuthorizerContext, AuthorizerSchema, GatewayVersion, HTTPEventHandler, HTTPRequest, Responses } from '../types.js'; export declare function httpParseEvent>({ bodyType, schema, security, }: HTTPEventHandler): { authorization: (event: APIGatewayProxyEventV2Schema | APIGatewayProxyEventSchema) => Try>; before: (event: APIGatewayProxyEventV2Schema | APIGatewayProxyEventSchema, authorizer: AnyAuthorizerContext) => Try; };