/** * Router interface for navigation */ export interface Router { push: (path: string) => void; replace?: (path: string) => void; } /** Dispatched after programmatic navigation via the default history router (`AuthRoutes` listens). */ export declare const AUTH_NAVIGATE_EVENT = "auth-ui:navigate"; /** * Default router using `history.pushState` + navigation events. * Works for `AuthRoutes`-only SPAs. For React Router or Next.js, use `AuthRouterProvider` / bridge components. */ export declare function createDefaultRouter(): Router; /** Adapter for `react-router-dom` v6+ `useNavigate()`. */ export declare function createReactRouterAdapter(navigate: (to: string, options?: { replace?: boolean; }) => void): Router; /** Adapter for Next.js App Router `useRouter()` from `next/navigation`. */ export declare function createNextAppRouterAdapter(nextRouter: { push: (path: string) => void; replace?: (path: string) => void; }): Router; export { useRouter } from '../hooks/useRouter'; //# sourceMappingURL=router.d.ts.map