import type { ConsentValue } from '../cookie_consent/types.js'; import { type ReportErrorConfig } from './report_error.js'; export interface WithErrorHandlingOptions { config?: ReportErrorConfig; params?: unknown; isClient?: boolean; consent?: ConsentValue; } export default function withErrorHandling(fn: (...args: Args) => Result | Promise, classOrMethodName: string, options?: WithErrorHandlingOptions): (...args: Args) => Promise;