import { type APIGatewayProxyEvent, type APIGatewayProxyEventV2, type APIGatewayProxyResult, type Context as AWSContext } from 'aws-lambda';
import { type IncomingMessage, type ServerResponse } from 'http';
import { OpenApiRouter } from 'trpc-to-openapi';
import { CreateOpenApiNodeHttpHandlerOptions } from 'trpc-to-openapi';
export type CreateOpenApiAwsLambdaHandlerOptions<TRouter extends OpenApiRouter> = Omit<CreateOpenApiNodeHttpHandlerOptions<TRouter, IncomingMessage, ServerResponse>, 'maxBodySize'>;
type AWSAPIGatewayEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;
export declare const createOpenApiAwsLambdaHandler: <TRouter extends OpenApiRouter>(opts: CreateOpenApiAwsLambdaHandlerOptions<TRouter>) => (event: AWSAPIGatewayEvent, _context: AWSContext) => Promise<APIGatewayProxyResult>;
export {};
//# sourceMappingURL=shim.d.ts.map