import { browserTracingIntegration } from '@sentry/browser'; import { Integration } from '@sentry/core'; import { ReactRouterOptions } from './reactrouter-compat-utils'; import { CreateRouterFunction, Router, RouterState, UseRoutes } from './types'; /** * A browser tracing integration that uses React Router v6 to instrument navigations. * Expects `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren` and `matchRoutes` to be passed as options. */ export declare function reactRouterV6BrowserTracingIntegration(options: Parameters[0] & ReactRouterOptions): Integration; /** * A wrapper function that adds Sentry routing instrumentation to a React Router v6 useRoutes hook. * This is used to automatically capture route changes as transactions when using the useRoutes hook. */ export declare function wrapUseRoutesV6(origUseRoutes: UseRoutes): UseRoutes; /** * A wrapper function that adds Sentry routing instrumentation to a React Router v6 createBrowserRouter function. * This is used to automatically capture route changes as transactions when using the createBrowserRouter API. */ export declare function wrapCreateBrowserRouterV6 = Router>(createRouterFunction: CreateRouterFunction): CreateRouterFunction; /** * A wrapper function that adds Sentry routing instrumentation to a React Router v6 createMemoryRouter function. * This is used to automatically capture route changes as transactions when using the createMemoryRouter API. * The difference between createBrowserRouter and createMemoryRouter is that with createMemoryRouter, * optional `initialEntries` are also taken into account. */ export declare function wrapCreateMemoryRouterV6 = Router>(createMemoryRouterFunction: CreateRouterFunction): CreateRouterFunction; /** * A higher-order component that adds Sentry routing instrumentation to a React Router v6 Route component. * This is used to automatically capture route changes as transactions. */ export declare function withSentryReactRouterV6Routing

, R extends React.FC

>(routes: R): R; //# sourceMappingURL=reactrouterv6.d.ts.map