import type { IErrorBoundary, ILogger } from './interfaces.js'; export declare class ErrorBoundary implements IErrorBoundary { private readonly logger; constructor(logger?: ILogger); handle(operation: () => Promise, context?: string): Promise; handleSync(operation: () => T, context?: string): T; private handleError; private extractErrorMessage; wrap(fn: (...args: TArgs) => Promise, context?: string): (...args: TArgs) => Promise; wrapSync(fn: (...args: TArgs) => TReturn, context?: string): (...args: TArgs) => TReturn; forContext(context: string): IErrorBoundary; } export declare const errorBoundary: ErrorBoundary; //# sourceMappingURL=ErrorBoundary.d.ts.map