import { Context } from "../../agent/Context"; export type APIGatewayProxyEventV1 = { resource: string; httpMethod: string; headers: Record; queryStringParameters?: Record; pathParameters?: Record; path: string; requestContext?: { identity?: { sourceIp?: string; }; }; body?: string; }; export type APIGatewayProxyEventV2 = { headers: Record; queryStringParameters?: Record; pathParameters?: Record; rawPath: string; rawQueryString: string; requestContext: { http?: { method: string; path: string; protocol: string; sourceIp: string; userAgent: string; }; }; body?: string; cookies?: string[]; }; export type APIGatewayProxyEvent = APIGatewayProxyEventV1 | APIGatewayProxyEventV2; export declare function isGatewayEvent(event: unknown): event is APIGatewayProxyEvent; export declare function isGatewayEventV1(event: Record): event is APIGatewayProxyEventV1; export declare function isGatewayEventV2(event: Record): event is APIGatewayProxyEventV2; export declare function getUrlFromGatewayEvent(event: APIGatewayProxyEvent): string | undefined; export declare function getQueryStringFromGatewayEvent(event: APIGatewayProxyEvent): string | undefined; export declare function getContextForGatewayEvent(event: APIGatewayProxyEvent): Context | undefined;