import { Collection } from "../collection/index.d.mts"; import type { TCollectionElement } from "../collection/index.d.mts"; import { CollectionItem } from "../collectionItem/index.d.mts"; import { Localisation } from "../localisation/index.d.mts"; type TCollectionArgs = [string, typeof Locale, boolean?]; type TLocaleCfg = { code?: string; attr?: string | string[]; options?: Record; }; /** * Класс для рендеринга элемента локали статичной разметки */ export declare class Locale extends CollectionItem { #private; states: { lastTransition: string | null; }; isReact: boolean; constructor(el: TCollectionElement); get attr(): string | string[] | null; get options(): Record; get locale(): string; set translate(msg: string); get code(): string | null; } /** * Коллекция вызовов локализации для статичной разметки (режима SSG). * Следует запускать после инициализации плагина `Localisation` */ export declare class LocaleCollection extends Collection { #private; /** * Признак регистрации коллекции в глобальном namespace Core. * @type {boolean} */ static isApp: boolean; /** * Текущий экземпляр плагина Localisation, используемый для перевода элементов коллекции. * @type {Localisation|null} */ static localisationInstance: Localisation | null; /** * CSS-селектор элементов локализации для автоподключения коллекции. * @type {string} */ static selector: string; constructor(...args: TCollectionArgs); /** * Защищает React-элементы от попадания в статичную коллекцию * @returns {Boolean} */ isValid(el: TCollectionElement): boolean; watchUpdates(): void; update(): void; } export {};