import type { TStaticElementCfg } from "../../utils/getCfg.d.mts"; import type { TCollectionItemDefaultCfg } from "../collection/index.d.mts"; /** * Factory. Предоставляет готовые поля `instance` и `cfg`. * @module CollectionItem * @param element{Element} передаваемый элемент DOM * @param selector{String=} передаваемый селектор элемента * @param defaultCfg{Object=} конфигурация плагина по умолчанию * @example * import { CollectionItem } from "@delement/ui/plugins" * * class MyPlugin extends CollectionItem { * * constructor(el) { * super(el); * // console.debug(this.instance, this.cfg); * } * * } */ declare class CollectionItem { instance: HTMLElement; cfg: TStaticElementCfg; constructor(element: HTMLElement, selector?: string, defaultCfg?: T); } export { CollectionItem, };