@iotile/iotile-common
Version:
Common utilities for IoTile Packages and Applications
18 lines (17 loc) • 764 B
TypeScript
import { ComponentBase } from "./component-base";
export declare class WidgetChannel {
bindMethod?: (func: any, stream: number | string) => void;
bindCallback?: (func: any, stream: number | string) => void;
getStreamID?: (stream: string) => string;
callRPC?: (addr: number, rpcID: number, call_fmt: string, resp_fmt: string, args: (string | number)[], timeout?: number) => Promise<any[]>;
getUnits?: (stream: string) => string;
setState?: (state: string) => void;
constructor();
}
export declare class WidgetBase extends ComponentBase {
channel: WidgetChannel | undefined;
widget: any;
constructor(name: string, $injector: any, $scope: any);
initialize(): Promise<void>;
cleanup(): Promise<void>;
}