import { e as TracedOptions } from './types-Db5ZtQHb.js'; /** * Type-safe function wrapper for OpenTelemetry tracing * * Wraps a single function in an OTel span without mutating prototypes. * * @module traced */ /** * Wraps a function in an OpenTelemetry span. * * The wrapper preserves the original function's type signature. * Supports both sync and async functions. * * @param fn - The function to wrap * @param options - Tracing options * @returns Wrapped function with the same type signature * * @example * ```typescript * const findUser = traced(async (id: string) => { * return await db.users.findById(id); * }, { name: "UserService.findUser" }); * ``` */ declare function traced any>(fn: T, options?: TracedOptions): T; export { traced };