import type { Navigation } from '@sveltejs/kit'; /** * Observes the current page's parameterized route id (`$app/state`'s `page.route.id`). Unlike Kit 2's * `page` store, the rune isn't populated synchronously when the SDK sets up during `Sentry.init`, so * we react to it instead of reading it once. Used to upgrade the pageload span from `url` to `route`. */ export declare function onPageRouteChange(callback: (routeId: string | null) => void): () => void; export declare function onNavigationChange(callback: (navigation: Navigation | null) => void): () => void; /** * Reads the current navigation synchronously. `$effect`s are always batched to a microtask, which is * too late to catch SvelteKit's synchronous data-request `fetch` at navigation start; a synchronous * rune read lets us start the navigation span before that request so it propagates the right trace. * The read is untracked: the `fetch` wrapper calls this from user code, often inside a `$effect`, * and a tracked read would make that effect re-run on every navigation. */ export declare function getCurrentNavigation(): Navigation | null; //# sourceMappingURL=navigationState.svelte.d.ts.map