import { type ComponentType } from 'react'; export interface WithTraceOptions { componentName?: string; /** Source file path — set this for projects that can't enable the JSX transform. */ source?: string; } /** * `withTraceComponent(MyComponent)` — opt-in tracer for projects that * can't enable the global Babel transform. Wraps the component in a * Profiler and emits a `render` event on every commit. */ export declare function withTraceComponent
(Wrapped: ComponentType
, opts?: WithTraceOptions): ComponentType
;