import { NavigationAdapter, VowelRoute } from '../../types'; /** * Configuration options for DirectNavigationAdapter */ export interface DirectNavigationAdapterOptions { /** * Function to navigate to a path * @param path - The path to navigate to * * @example * ```ts * // Next.js * navigate: (path) => router.push(path) * * // Vue Router * navigate: (path) => router.push(path) * * // React Router * navigate: (path) => navigate(path) * ``` */ navigate: (path: string) => void | Promise; /** * Optional: Function to get current path * Defaults to window.location.pathname */ getCurrentPath?: () => string; /** * Optional: Array of routes * Can also be provided via Vowel config */ routes?: VowelRoute[]; } /** * Direct Navigation Adapter * * Handles same-tab navigation for SPAs by directly calling your router. * Perfect for React, Vue, Next.js, Svelte, and other SPA frameworks. */ export declare class DirectNavigationAdapter implements NavigationAdapter { private navigateFunction; private getPathFunction; private routes?; constructor(options: DirectNavigationAdapterOptions); /** * Navigate to a path */ navigate(path: string): Promise; /** * Get current path */ getCurrentPath(): string; /** * Get available routes */ getRoutes(): Promise; } //# sourceMappingURL=direct-navigation-adapter.d.ts.map