/** * Lambda adapter utilities. * * Pure functions to convert between AWS API Gateway events and * Web Standard Request/Response objects. No framework dependencies. */ import type { LambdaEvent, LambdaResult, APIGatewayV2Event } from './types.js'; /** Type guard: true for API Gateway v2 (HTTP API / Function URL) events. */ export declare function isV2Event(event: LambdaEvent): event is APIGatewayV2Event; /** Extract source IP from a Lambda event (v1 or v2). */ export declare function getSourceIp(event: LambdaEvent): string | undefined; /** Convert a Lambda event (v1 or v2) to a Web Standard Request. */ export declare function lambdaEventToRequest(event: LambdaEvent, basePath?: string): Request; /** Convert a Web Standard Response to a Lambda result (v1 or v2 format). */ export declare function responseToLambdaResult(response: Response, event: LambdaEvent): Promise;