UNPKG

@terrencecrowley/ot-js

Version:
21 lines (20 loc) 594 B
import * as OTC from "./otcomposite"; export interface IOTEngine { cid(): string; rid(): string; toValue(): any; startLocalEdit(): OTC.OTCompositeResource; addLocalEdit(e: OTC.OTCompositeResource): void; } export declare class OTEngine implements IOTEngine { onList: any; constructor(); on(eventName: string, cb: any): void; off(eventName: string, cb: any): void; emit(eventName: string): void; cid(): string; rid(): string; toValue(): any; startLocalEdit(): OTC.OTCompositeResource; addLocalEdit(e: OTC.OTCompositeResource): void; }