import { TrackedError } from './TrackedError'; import { TryCatchFinallyContext, TryCatchFinallyHook } from './wrapTryCatchFinallyPromisable'; export type OperationErrorHandlerContext = TContext & { decoratorArgs?: { onError?: (ctx: OperationErrorHandlerContext) => void; }; }; export declare class OperationErrorHandler { static getTryCatchFinallyHook(_ctx: OperationErrorHandlerContext): TryCatchFinallyHook; static onCatch(ctx: OperationErrorHandlerContext): void; static wrap(originalError: unknown, getWrapper: (e: unknown) => unknown | undefined, ctx?: TContext): TrackedError any>> | undefined; }