import { IntegrationError } from '@segment/actions-core'; import { TryCatchFinallyContext, TryCatchFinallyHook } from './operationTracking'; export type IntegrationErrorWrapperContext = TContext & { decoratorArgs?: { wrapIntegrationError?: (ctx: TContext) => IntegrationError | ConstructorParameters; }; }; export declare class IntegrationErrorWrapper { static getTryCatchFinallyHook(_ctx: IntegrationErrorWrapperContext): TryCatchFinallyHook; static onCatch(ctx: IntegrationErrorWrapperContext): void; static wrap(error: unknown, getWrapper: () => IntegrationError | ConstructorParameters, ctx?: TContext): import("./operationTracking").TrackedError any>> | undefined; }