import * as Sentry from '@sentry/node'; import { APIGatewayProxyEvent, Context, CustomAuthorizerEvent } from 'aws-lambda'; export declare function init(): void; /** * It captures errors in Sentry with either a non 4XX status code * or with no status code */ export declare function captureNon4XX(error: any): void; export declare function captureError(error: Error): void; /** * Attaches the Lambda event object as a breadcrumb */ export declare function addInvokeBreadcrumb(params: { event: APIGatewayProxyEvent | CustomAuthorizerEvent; context: Context; }): void; /** * This will drain the whole queue of events, returns true if queue is empty or drained. * If timeout is provided and the queue takes longer to drain, the promise still resolves but with false. */ export declare function drain(timeoutInMs?: number): Promise; export declare const addBreadcrumb: typeof Sentry.addBreadcrumb; //# sourceMappingURL=sentry-utils.d.ts.map