UNPKG

@terrencecrowley/ot-js

Version:
23 lines (22 loc) 684 B
import * as ILog from "@terrencecrowley/logabstract"; 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 { ilog: ILog.ILog; onList: any; constructor(ilog: ILog.ILog); 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; }