import { ITypedEvent } from "../../TypedEvent"; import { FieldChangeResult } from "../FieldChangeResult"; import { IDeviceTaskTypeInfo, IDeviceResponseTypeInfo, IDevice } from './IDevice'; import { ChannelConfigurations, IDeviceChannel, Roles, TaskExecution } from './IDeviceChannel'; import { IDeviceState, IDeviceStateData } from "./IDeviceState"; import { IDeviceTask } from "./IDeviceTask"; import { DeviceTaskExecutionResult } from "./TaskExecutionResult"; export declare class DeviceChannel implements IDeviceChannel { private _device; private _number; private _name; private _iconName; private _channelId; private _mode; private _channelGroups; private _isHidden; private _availableTasksTypes; private _availableResponseTypes; private static _devicesService; private _customData; private _roles; private _configurations; CustomDataAndRolesSupported: boolean; private _onTasksExecutionChangedEvent; private _onChannelStateChangedEvent; private _onChannelStateRefreshedOrChangedEvent; constructor(); SetCustomDataAsync(dataId: string, data: string): Promise; SetCustomDataAsync(data: Array<{ dataId: string; data: string; }>): Promise; OnChannelStateChangedEvent(): ITypedEvent>; OnChannelStateRefreshedOrChangedEvent(): ITypedEvent>; get Configurations(): Record; set Configurations(value: Record); IsCustomDataAndRolesSupported(): boolean; get CustomData(): Record; set CustomData(value: Record); get Roles(): Roles[]; set Roles(value: Roles[]); get ChannelId(): string; SetDevice(device: IDevice): void; GetDevice(): IDevice; RemoveCustomDataAsync(dataId: string): Promise; GetChannelConfigurationData(): ChannelConfigurationData; HideAsync(): Promise; ShowAsync(): Promise; ChangeNameAsync(name: string): Promise; ChangeIconNameAsync(name: string): Promise; ChangeGroupsAsync(groups: string[]): Promise; ChangeConfigurationAsync(configuration: DeviceChannelConfiguration): Promise; get Number(): number; set Number(value: number); get Name(): string; set Name(value: string); get IconName(): string; set IconName(value: string); get States(): IDeviceState[]; get Mode(): ChannelConfigurations; set Mode(value: ChannelConfigurations); get ChannelGroups(): string[]; set ChannelGroups(value: string[]); get IsHidden(): boolean; set IsHidden(value: boolean); get AvailableTaskTypes(): IDeviceTaskTypeInfo[]; set AvailableTaskTypes(value: IDeviceTaskTypeInfo[]); get AvailableResponseTypes(): IDeviceResponseTypeInfo[]; set AvailableResponseTypes(value: IDeviceResponseTypeInfo[]); OnTasksExecutionChangeEvent(): ITypedEvent; ExecuteTaskAsync(task: IDeviceTask): Promise; } export declare class DeviceChannelConfiguration { DeviceGuid: string; ChannelConfiguration: ChannelConfigurationData; } export declare class ChannelConfigurationData { Channel: number; ChannelName: string; Configuration: ChannelConfigurations; GroupsGuids: string[]; IconName: string; Hidden: boolean; Configurations: Record; CustomData: Record; Roles: Roles[]; }