import { EventBus, ICommandHandler, IEventHandler, QueryBus } from '@nestjs/cqrs'; import { DeviceId, Optional } from '../../common'; import { GoveeDevice, Product } from '../../data'; import { DeviceStatusReceivedEvent } from './cqrs/events'; import { Device } from './device'; import { DevicesFactory } from './devices.factory'; import { DeviceModel } from './devices.model'; import { RefreshDeviceCommand } from './cqrs/commands/refresh-device.command'; export declare class DevicesService implements IEventHandler, ICommandHandler { private readonly factory; private readonly eventBus; private readonly queryBus; private readonly logger; private readonly deviceMap; constructor(factory: DevicesFactory, eventBus: EventBus, queryBus: QueryBus); handle(event: DeviceStatusReceivedEvent): void; getByModel(model: string): Device[]; getDevice(deviceId: DeviceId): Device | undefined; getDeviceIds(): string[]; setDevice(device: Device): Device; execute(command: RefreshDeviceCommand): Promise; discoverDevice(goveeDevice: GoveeDevice): Promise; createDeviceFromModel(deviceModel: DeviceModel): Device; getProduct(device: GoveeDevice): Promise>; createDeviceModel(device: GoveeDevice, product?: Product): Promise; } //# sourceMappingURL=devices.service.d.ts.map