import type { Integration } from '@sentry/core'; import type { ClientInstrumentation } from '../common/types'; import { type CreateSentryClientInstrumentationOptions } from './createClientInstrumentation'; /** * Options for the React Router tracing integration. */ export interface ReactRouterTracingIntegrationOptions { /** * Options for React Router's instrumentation API. */ instrumentationOptions?: CreateSentryClientInstrumentationOptions; /** @deprecated `clientInstrumentation` is always built, so this flag is a no-op. Will be removed in a future major. */ useInstrumentationAPI?: boolean; } /** * React Router tracing integration with support for the instrumentation API. */ export interface ReactRouterTracingIntegration extends Integration { /** * Client instrumentation to pass to `HydratedRouter`'s `instrumentations` prop. * * @deprecated Use the standalone `createSentryClientInstrumentation()` export instead and pass its * result to `HydratedRouter`'s `instrumentations` prop. This mirrors the server-side * `createSentryServerInstrumentation()` API. Will be removed in a future major. */ readonly clientInstrumentation: ClientInstrumentation; } /** * Browser tracing integration for React Router (Framework) applications. * This integration will create navigation spans and enhance transaction names with parameterized routes. */ export declare function reactRouterTracingIntegration(options?: ReactRouterTracingIntegrationOptions): ReactRouterTracingIntegration; //# sourceMappingURL=tracingIntegration.d.ts.map