import * as Monaco from 'monaco-editor'; import { Repository, Branch, Change, IridescentEnv, Entry } from './Interfaces'; export default class Iridescent { private readonly rainbowConnection; private readonly virtualTree; private operationQueue; private applyingOperations; private readonly events; constructor(iridescentEnv: IridescentEnv, repo: Repository, branchName: string, sha?: string); disconnect(): Promise; load: (includeAutosaves?: boolean | undefined) => Promise; addEventListener(eventName: string, callback: Function): void; removeEventListener(eventName: string, callback: Function): void; getContent(path: string): Promise; addPath(path: string): string; renamePath(oldPath: string, newPath: string): void; deletePath(path: string): void; undeletePath(path: string): void; updatePath(path: string, changes: ReadonlyArray): Promise; revert(path: string): Promise; hasPath(path: string): boolean; commit(message: string): Promise; getFileEntries(): ReadonlyArray; sendSelections(path: string, selections: ReadonlyArray): void; private receivedOperations; }