import { LocaleModule, configureLocalization } from '@lit/localize'; import { WeavyClient } from './weavy'; import { Constructor } from '../types/generic.types'; /** * The locale used in the source files. */ export declare const SOURCE_LOCALE = "en"; export interface WeavyLocalizationProps { locales: [string, LocaleModule | Promise | (() => Promise)][]; readonly localization?: ReturnType; locale: string; } export declare const WeavyLocalizationMixin: >(Base: TBase) => { new (...args: any[]): { _locales: Map | (() => Promise)>; get locales(): WeavyLocalizationProps["locales"]; set locales(locales: WeavyLocalizationProps["locales"] | null | undefined); _locale: string; _localization?: ReturnType; get localization(): { getLocale: (() => string) & { _LIT_LOCALIZE_GET_LOCALE_?: never; }; setLocale: ((newLocale: string) => Promise) & { _LIT_LOCALIZE_SET_LOCALE_?: never; }; } | undefined; /** * Selected locale. The locale must be pre configured in `.locales`. */ get locale(): string; set locale(newLocale: string | null | undefined); loadLocale(newLocale: string): Promise; configureLocalization(): void; readonly weavySid: string; readonly weavyId: string; readonly host: HTMLElement; cloudFilePickerUrl: string | URL; configurationTimeout: number; disableEnvironmentImports: boolean; gcTime: number; scrollBehavior: "auto" | "instant" | "smooth"; staleTime: number; tokenFactoryRetryDelay: number; tokenFactoryTimeout: number; _resolveUrl?: (url: URL) => void; _whenUrl: Promise; whenUrl(): Promise; _url?: URL; get url(): URL | undefined; set url(url: string | URL | null | undefined); get cachePrefix(): string; reset(): Promise; _isDestroyed: boolean; get isDestroyed(): boolean; destroy(): void; }; /** * The locale used in the Weavy source. */ get sourceLocale(): "" | "en"; } & TBase; //# sourceMappingURL=localization.d.ts.map