UNPKG

love-on-the-route

Version:
31 lines (29 loc) 841 B
import { createRouter } from '../router/Router'; import { LoveNav } from '../components/LoveNav'; import { updateSEO } from '../utils/seo'; interface LoveOnTheRouteConfig { container: string | HTMLElement; generateNav?: boolean; navOptions?: { tagName?: string; linkClass?: string; activeClass?: string; containerClass?: string; insertBefore?: string | HTMLElement; }; seoDefaults?: { siteName?: string; image?: string; type?: string; }; pages?: Record<string, { default: () => HTMLElement; }>; } interface LoveOnTheRouteInstance { router: ReturnType<typeof createRouter>; nav?: LoveNav; updateSEO: typeof updateSEO; } export declare function loveOnTheRoute(config: LoveOnTheRouteConfig): LoveOnTheRouteInstance; export {};