import AppInfo from './appInfo'; import CaptureProperty from './captureProperty'; import { RpcTransport } from './rpcTransport'; import CaptureOptions from './captureOptions'; import { JRpcEvent } from './jsonRpc'; import { CaptureEvent } from './captureEvents'; import { Logger } from './logger'; declare type Notification = (event: CaptureEvent, handle?: number) => void; declare class Capture { transport: RpcTransport; host: string; clientOrDeviceHandle: number; transportHandle: number; rpcId: number; onEventNotification: Notification; rootCapture?: Capture; logger?: Logger; constructor(log?: Logger); open(appInfo: AppInfo, eventNotification: Notification, options?: CaptureOptions): Promise; close(): Promise; openDevice(guid: string, capture: Capture): Promise; getProperty(property: CaptureProperty): Promise>; setProperty(property: CaptureProperty): Promise>; notification(jsonRpc: JRpcEvent, handle?: number): void; private unifyResultInEvents; private getJsonRpcId; } export default Capture;