import { WrappedFunction } from '@sentry/core'; /** * 包装函数以捕获异常 */ export declare function wrap(fn: WrappedFunction, options?: { mechanism?: { data?: Record; handled?: boolean; type?: string; }; }, before?: WrappedFunction): any; export interface ErrorDetails { message: string; stack: string; type?: string; } export declare function getErrorDetails(value: unknown): ErrorDetails | undefined; /** * 安全地提取函数名称 */ export declare function getFunctionName(fn: any): string; /** * 用新值填充对象属性,保留原始值的引用 */ export interface FillResult { replaced: boolean; restore: () => void; } export declare function fill(source: { [key: string]: any; }, name: string, replacementFactory: (...args: any[]) => any): FillResult | undefined; //# sourceMappingURL=helpers.d.ts.map