import { Device } from './Device'; import { DeviceConfig } from '../types/Devices.types'; export declare type customCallback = { tag: string; callback: () => {}; }; export declare class EventSourceDevice extends Device { url: string; source?: EventSource; customCallbacks: customCallback[]; api: { [x: string]: Function; }; constructor(constraints: DeviceConfig | DeviceConfig[]); newPostCommand(name?: string, url?: string | undefined, data?: undefined, user?: undefined, pass?: undefined): () => void; send: (body: any, url?: string) => Promise; connect: () => Promise; _disconnect: () => Promise; onconnect: (e: any) => Promise; onerror: (e: any) => Promise; createEventListeners: () => void; removeEventListeners: () => void; }