import { IridescentEnv, ServerFileEntry, Branch, Operation } from './Interfaces'; export default class AutoSaveConnection { private readonly link; private timeoutId?; private batchedOperations; private cachedContent; constructor(iridescentEnv: IridescentEnv); disconnect(branch: Branch): void; fetchBranch(branch: Branch): Promise<{ sha: any; tip: any; tree: ReadonlyArray; }>; commit(branch: Branch, message: string, modifiedFiles: any): Promise; fetchAutosavedChanges(branch: Branch): Promise; getBaseContent(branch: Branch, path: string): Promise; queueOperations(branch: Branch, operations: ReadonlyArray): void; private sendOperations; private sendQueuedOperations; private handleApolloErrors; }