import type { Id } from "@codesandbox/pitcher-common"; import { ot } from "@codesandbox/pitcher-common"; import type { RcRef } from "../../../common/Rc"; import { Rc } from "../../../common/Rc"; import type { IFile } from "../../../interface/clients/IFile"; import type { IFileClient, IFileJoinEvent, IFileLeaveEvent, IFileSaveEvent, IFileMoveEvent, IFileDeleteEvent } from "../../../interface/clients/IFileClient"; import type { RelativeWorkspacePath } from "../../../types"; import type { PitcherMessageHandler } from "../../PitcherMessageHandler"; import type { FSClient } from "../FSClient"; import { File } from "./File"; export * from "./File"; export * from "./Document"; export declare class FileClient implements IFileClient { private messageHandler; private fs; private workspacePath; private onFileOpenEmitter; onFileOpen: import("@codesandbox/pitcher-common").Event; private onFileJoinEmitter; onFileJoin: import("@codesandbox/pitcher-common").Event; private onFileLeaveEmitter; onFileLeave: import("@codesandbox/pitcher-common").Event; private onFileSaveEmitter; onFileSave: import("@codesandbox/pitcher-common").Event; private onFileMoveEmitter; onFileMove: import("@codesandbox/pitcher-common").Event; private onFileDeleteEmitter; onFileDelete: import("@codesandbox/pitcher-common").Event; private openedPaths; private openFiles; private pendingFiles; constructor(messageHandler: PitcherMessageHandler, fs: FSClient, workspacePath: string); hasDirtyFiles(): boolean; private registerFile; getFileIdFromPath(filepath: RelativeWorkspacePath): Id | undefined; getPathFromFileId(fileId: Id): RelativeWorkspacePath | undefined; getOpenedFile(fileId: Id): File | undefined; getOpenFiles(): Rc[]; openFile(fileId: Id): Promise>; openFileByPath(filepath: RelativeWorkspacePath): Promise>; createDocumentOperationFromDiff(originalText: string, modifiedText: string): ot.TextOperation; resync(): Promise; getIdFromWorkspaceUriString(uriString: string): Id | undefined; dispose(): void; } //# sourceMappingURL=index.d.ts.map