import { DataSource, EntitySubscriberInterface, RemoveEvent, UpdateEvent } from 'typeorm'; import { DeviceEntity } from '../entities/devices.entity'; import { DeviceConnectionStateService } from '../services/device-connection-state.service'; export declare class DeviceEntitySubscriber implements EntitySubscriberInterface { private readonly deviceStatusService; private readonly dataSource; private readonly logger; constructor(deviceStatusService: DeviceConnectionStateService, dataSource: DataSource); listenTo(): typeof DeviceEntity; afterLoad(entity: DeviceEntity): Promise; beforeUpdate(event: UpdateEvent): void; afterRemove(event: RemoveEvent): Promise; }