/** * KTUI - Free & Open-Source Tailwind UI Components by Keenthemes * Copyright 2025 by Keenthemes Inc */ declare global { interface Window { KTGlobalComponentsConfig: object; } } import { KTOptionType } from '../types'; export default class KTComponent { protected _dataOptionPrefix: string; protected _name: string; protected _defaultConfig: object; protected _config: object; protected _events: Map>; protected _uid: string | null; protected _element: HTMLElement | null; /** * Check if component should skip initialization * Returns true if element already has an instance and is still connected to DOM * Returns false if element should be initialized (no instance or disconnected) * @param element The element to check * @returns true if initialization should be skipped, false otherwise */ protected _shouldSkipInit(element: HTMLElement): boolean; protected _init(element: HTMLElement | null): void; protected _fireEvent(eventType: string, payload?: object | null): Promise; protected _dispatchEvent(eventType: string, payload?: object | null): void; protected _getOption(name: string): KTOptionType; protected _getGlobalConfig(): object; protected _buildConfig(config?: object): void; /** * Merge config into the existing _config in place. Use when re-applying config to an * already-initialized instance so handlers that hold a reference to _config see updates. */ protected _mergeConfig(config: object): void; dispose(): void; on(eventType: string, callback: CallableFunction): string; off(eventType: string, eventId: string): void; getOption(name: string): KTOptionType; getElement(): HTMLElement | null; } //# sourceMappingURL=component.d.ts.map