UNPKG

love-on-the-route

Version:
21 lines (20 loc) 741 B
interface SEOConfig { title?: string; description?: string; url?: string; image?: string; siteName?: string; type?: string; keywords?: string[]; } export declare function updateSEO(config: SEOConfig): void; export declare function resetSEO(): void; export declare function detectCurrentLanguage(supportedLanguages?: string[]): string; export declare function getCurrentLanguage(): string; type LanguageChangeCallback = (newLanguage: string) => void; export declare function watchLanguageChanges(callback: LanguageChangeCallback): () => void; export declare function filterRoutesByCurrentLanguage<T extends { path: string; language?: string; }>(routes: T[], supportedLanguages?: string[]): T[]; export {};