export interface IObnizOptions { binary?: boolean; local_connect?: boolean; debug_dom_id?: string; auto_connect?: boolean; access_token?: string | null; obniz_server?: string; reset_obniz_on_ws_disconnection?: boolean; obnizid_dialog?: boolean; } export interface IObniz { id: string; onconnect?: (obniz: any) => Promise | void; onloop?: (obniz: any) => Promise | void; onclose?: (obniz: any) => Promise | void; closeWait: () => Promise; connect: () => void; autoConnect: boolean; } export interface IObnizStatic { new (obnizId: string, options: IObnizOptions): O; version: string; }