import { Worker } from '../../Worker'; import { DummyObniz } from './DummyObniz'; import { App } from '../../App'; import { IObnizOptions } from '../../Obniz.interface'; import { DeviceInfo } from '../../types/device'; import { Slave } from '../../Slave'; export type WorkerLogEventType = 'onStart' | 'onLoop' | 'onEnd' | 'onRequest' | 'onObnizConnect' | 'onObnizLoop' | 'onObnizClose'; export interface WorkerLog { obnizId: string; date: Date; eventType: WorkerLogEventType; requestVal?: string; } export declare class LogWorker extends Worker { static workers: LogWorker[]; __logs: WorkerLog[]; __addedObnizLoopEvent: boolean; __addedLoopEvent: boolean; static __reset(): void; constructor(deviceInfo: DeviceInfo, app: App, slave: Slave, option?: IObnizOptions); __getOption(): IObnizOptions; onStart(): Promise; onLoop(): Promise; onEnd(): Promise; onRequest(key: string): Promise; onObnizConnect(obniz: DummyObniz): Promise; onObnizLoop(obniz: DummyObniz): Promise; onObnizClose(obniz: DummyObniz): Promise; protected __addLog(eventType: WorkerLogEventType, requestVal?: string): void; }