import { Translations } from 'nuxt-i18n-micro-types'; import { Ref } from 'vue'; export interface TranslationCache { generalLocaleCache: Ref> | Record; routeLocaleCache: Ref> | Record; dynamicTranslationsCaches: Ref[]> | Record[]; serverTranslationCache: Ref>> | Record>; } export declare function useTranslationHelper(caches?: TranslationCache): { hasCache(locale: string, page: string): boolean; getCache(locale: string, routeName: string): Map | undefined; setCache(locale: string, routeName: string, cache: Map): void; mergeTranslation(locale: string, routeName: string, newTranslations: Translations, force?: boolean): void; mergeGlobalTranslation(locale: string, newTranslations: Translations, force?: boolean): void; hasGeneralTranslation(locale: string): boolean; hasPageTranslation(locale: string, routeName: string): boolean; hasTranslation: (locale: string, key: string) => boolean; getTranslation: (locale: string, routeName: string, key: string) => T | null; loadPageTranslations(locale: string, routeName: string, translations: Translations): Promise; loadTranslations(locale: string, translations: Translations): Promise; clearCache(): void; };