import type { IComponentEvents, IComponentGetComponentsResult, IComponentState, ILogger, IQrwcExpandedGenericParameter, ReadOnlyControl } from '../index.interface.js'; import type { ChangeGroup } from './ChangeGroup.js'; import type { Qrwc } from './Qrwc.js'; import type { QrcClient } from '../connection/QrcClient.js'; import { Control } from './Control.js'; import { EventEmitter } from '../event/EventEmitter.js'; /** * Represents a component in the Q-Sys system with its associated controls * @extends EventEmitter */ export declare class Component extends EventEmitter> { private readonly logger; private readonly _state; readonly qrwc: Qrwc; readonly name: U & string; private _controls; /** * This constructor is private because this object has an asynchronous * construction, and we are using a static async factory method for object * instantiation instead. */ private constructor(); /** * Asynchronously creates a new Component instance * This factory method handles the async initialization process including fetching controls */ static createComponent(logger: ILogger, qrcClient: QrcClient, // The global QrcClient instance changeGroup: ChangeGroup, // The global ChangeGroup instance qrwc: Qrwc, // The global Qrwc instance name: U & string, state: IComponentGetComponentsResult): Promise>; /** * Get the controls associated with this component * @returns {Readonly>} A read-only record of controls, keyed by control name * @public */ get controls(): Readonly<{ [V in keyof T['components'][U]['controls']]: T['components'][U]['controls'][V]['state']['Direction'] extends 'Read Only' ? string extends V ? ReadOnlyControl | undefined : ReadOnlyControl : string extends V ? Control | undefined : Control; }>; /** * Cached copy of everything QRWC has received for this component. * * @returns {IComponentState} The frozen (immutable) current state */ get state(): IComponentState; close: () => void; } //# sourceMappingURL=Component.d.ts.map