import { Client } from '@sentry/core'; export type FunctionInstrumentationHandler = (original: Function, thisArg: unknown, args: unknown[]) => unknown; /** * 安装一次进程级函数包装,但不绑定 client 处理器。 * * `setupOnce()` 可调用本函数;真正的数据采集必须由 `setup(client)` 注册 handler。 */ export declare function ensureFunctionInstrumentation(source: object, name: string): boolean; /** * 为指定 client 注册函数 instrumentation handler。 * * 全局函数只包装一次;调用发生时仅分发给当前 scope 绑定的 client。退订只移除 * 当前 client 的 handler,最后一个 handler 退出后才安全恢复宿主原函数。 */ export declare function addFunctionInstrumentationHandler(source: object, name: string, client: Client, handler: FunctionInstrumentationHandler): () => void; //# sourceMappingURL=instrumentation.d.ts.map