import { ConstructorParams } from './types/constructor-params.interface'; /** * Class for working with UI: * Класс для работы с UI: * - rendering base structure * рендеринг базовой структуры * - show/hide preview * показ/скрытие превью * - apply tune view * применение настроек отображения */ declare class Ui { /** * Nodes representing various elements in the UI. * Узлы, представляющие различные элементы в UI. */ nodes: { entities: HTMLElement; wrapper: HTMLElement; }; /** * API instance for Editor.js. * Экземпляр API для Editor.js. */ private api; /** * Configuration for the card with select tool. * Конфигурация для инструмента карточки с выбором. */ private config; /** * File handler instance * Экземпляр обработчика файлов */ private fileHandler; /** * Select manager instance * Экземпляр менеджера селектов */ private selectManager; /** * DOM renderer instance * Экземпляр рендерера DOM */ private domRenderer; /** * Entity manager instance * Экземпляр менеджера сущностей */ private entityManager; /** * @param ui - card with select tool Ui module * @param ui.api - Editor.js API * @param ui.config - user config * * @param ui - модуль UI инструмента карточки с выбором * @param ui.api - API Editor.js * @param ui.config - пользовательская конфигурация */ constructor({ api, config }: ConstructorParams); /** * Renders tool UI * Рендерит UI инструмента */ render(): HTMLElement; /** * Add new item with default type * Добавить новый элемент с типом по умолчанию * @param title - description content text / текст содержимого описания * @param description - description content text / текст содержимого описания * @param entityId - description content text / текст содержимого описания * @param customLink - custom link URL / URL произвольной ссылки * @param file - attached file data / данные прикрепленного файла */ addNewItem(title: string, description: string, entityId: string | null, customLink?: string, file?: { url: string; name: string; size?: number; }): void; /** * Add new item with specified type * Добавить новый элемент с указанным типом * @param title - description content text / текст содержимого описания * @param description - description content text / текст содержимого описания * @param entityId - description content text / текст содержимого описания * @param type - type of link: configurable type key, 'custom', or 'file' / тип ссылки: ключ настраиваемого типа, 'custom' или 'file' * @param customLink - custom link URL / URL произвольной ссылки * @param file - attached file data / данные прикрепленного файла */ addNewItemWithType(title: string, description: string, entityId: string | null, type: string, customLink?: string, file?: { url: string; name: string; size?: number; }): void; /** * CSS classes * CSS классы */ private get CSS(); } export { Ui };