import type { EventType } from "../Mutables/events/events"; /** * Detail passed to every navigation-request subscriber / `onNavigationRequest`. * * When any guard is subscribed, navigate waits until **every** subscriber * calls `next()` (AND). Extra `next()` calls are ignored. Omit `next()` to * cancel. Side effects after a successful navigation belong in `onNavigate`. */ export interface NavigationRequestDetail { /** Target path passed to navigateTo (may include ? / #). */ to: string; /** Pathname before this navigation attempt. */ from: string; /** Whether the pending navigation uses replaceState. */ replace: boolean; /** Optional history.state payload. */ data?: any; /** Commit the pending navigation exactly once. */ next: () => void; } /** @deprecated Use {@link NavigationRequestDetail}. */ export type NavigationEventPayload = NavigationRequestDetail; export type NavigationRequestEvent = EventType & { readonly handlerCount: number; }; /** * Creates the navigation-request bus used by `navigateTo` / `popstate`. * Exposes `handlerCount` so navigateTo can defer commit when guards exist. */ export declare function createNavigationRequestEvent(): NavigationRequestEvent; //# sourceMappingURL=navigationRequest.d.ts.map