import type { IStartOptions, IQrwcEvents, IEngineStatus, IQrwcExpandedGenericParameter, IQrwcSimpleGenericParameter, INormalizedQrwcParameter } from '../index.interface.js'; import { Component } from './Component.js'; import { EventEmitter } from '../event/EventEmitter.js'; /** * Main entry point for the QRWC library * Manages components, controls, and WebSocket communication with the core * @extends EventEmitter */ export declare class Qrwc extends EventEmitter> { private readonly logger; private readonly qrcClient; private readonly changeGroup; private _components; private constructor(); /** * Gets all available components from the core * @returns {Readonly>} A read-only record of components, keyed by component name * @public */ get components(): Readonly<{ [U in keyof T['components']]: string extends U ? Component | undefined : Component; }>; /** * The core's latest engine status * @public */ get engineStatus(): Readonly; /** * Creates and initializes a new Qrwc instance * Establishes WebSocket connection, fetches all components from the core and starts polling for changes * * @param {IStartOptions} options - Configuration options * @param {WebSocket} options.socket - WebSocket instance * @param {number} [options.pollingInterval] - Interval in milliseconds for polling the change group * @param {(state: IComponentState) => boolean} [options.componentFilter] - Function to filter components in design * @param {number} [options.timeout] - Timeout in milliseconds for websocket messages * @returns {Promise} A fully initialized Qrwc instance, or `undefined` if the connection or component fetch fails (the error is logged, not thrown) * @public * @static */ static createQrwc(options: IStartOptions): Promise> | undefined>; /** * Closes the connection and performs cleanup * @public */ close: () => void; } //# sourceMappingURL=Qrwc.d.ts.map