import { Context } from "aws-lambda"; export declare enum eventTypes { apiGateway = "api-gateway", applicationLoadBalancer = "application-load-balancer", cloudFront = "cloudfront", cloudWatchEvents = "cloudwatch-events", cloudWatchLogs = "cloudwatch-logs", cloudWatch = "cloudwatch", dynamoDB = "dynamodb", eventBridge = "eventbridge", kinesis = "kinesis", lambdaUrl = "lambda-function-url", s3 = "s3", sns = "sns", sqs = "sqs", stepFunctions = "states" } export declare enum eventSubTypes { apiGatewayV1 = "api-gateway-rest-api", apiGatewayV2 = "api-gateway-http-api", apiGatewayWebsocket = "api-gateway-websocket", unknown = "unknown-sub-type" } export declare function parseEventSourceSubType(event: any): eventSubTypes; /** * parseEventSource parses the triggering event to determine the source * Possible Returns: * api-gateway | application-load-balancer | cloudwatch-logs | * cloudwatch-events | cloudfront | dynamodb | kinesis | s3 | sns | sqs | states */ export declare function parseEventSource(event: any): eventTypes.apiGateway | eventTypes.applicationLoadBalancer | eventTypes.cloudFront | eventTypes.cloudWatchEvents | eventTypes.cloudWatchLogs | eventTypes.dynamoDB | eventTypes.eventBridge | eventTypes.kinesis | eventTypes.lambdaUrl | eventTypes.s3 | eventTypes.sns | eventTypes.sqs | eventTypes.stepFunctions | undefined; /** * parseEventSourceARN parses the triggering event to determine the event source's * ARN if available. Otherwise we stitch together the ARN */ export declare function parseEventSourceARN(source: string | undefined, event: any, context: Context): string | undefined; /** * extractTriggerTags parses the trigger event object for tags to be added to the span metadata */ export declare function extractTriggerTags(event: any, context: Context, eventSource: eventTypes | undefined): { [key: string]: string; }; /** * extractHTTPStatusCode extracts a status code from the response if the Lambda was triggered * by API Gateway, ALB, or Lambda Function URL */ export declare function extractHTTPStatusCodeTag(triggerTags: { [key: string]: string; } | undefined, result: any, isResponseStreamFunction: boolean): string | undefined; //# sourceMappingURL=trigger.d.ts.map