import { DataSource, EntitySubscriberInterface, UpdateEvent } from 'typeorm'; import { InsertEvent } from 'typeorm/subscriber/event/InsertEvent'; import { ShellyV1DeviceEntity } from '../entities/devices-shelly-v1.entity'; import { ShelliesAdapterService } from '../services/shellies-adapter.service'; import { ShellyV1HttpClientService } from '../services/shelly-v1-http-client.service'; export declare class DeviceEntitySubscriber implements EntitySubscriberInterface { private readonly dataSource; private readonly shelliesAdapter; private readonly httpClient; private readonly logger; constructor(dataSource: DataSource, shelliesAdapter: ShelliesAdapterService, httpClient: ShellyV1HttpClientService); listenTo(): typeof ShellyV1DeviceEntity; private fetchDeviceUsername; afterInsert(event: InsertEvent): Promise; afterUpdate(event: UpdateEvent): Promise; afterRemove(event: { entity?: ShellyV1DeviceEntity; }): void; }