import type { CompletionItem, Position, Range } from "vscode-languageserver"; import type { DiagramUpdateResult } from "../diagramImplementation.js"; import { DiagramImplementation } from "../diagramImplementation.js"; import type { RemoteDiagramImplementationManager } from "./remoteDiagramImplementationManager.js"; import type { DiagramConfig, Root } from "@hylimo/diagram-common"; /** * Remote implementation of a diagram. * If available, performs the layouted diagram operations on a remote language server. */ export declare class RemoteDiagramImplementation extends DiagramImplementation { private readonly layoutedDiagramManager; private readonly remoteId; private readonly id; /** * Creates a new RemoteDiagramImplementation. * * @param layoutedDiagramManager manager by which this is handled * @param remoteId the id of the remote language server * @param id the id of the diagram */ constructor(layoutedDiagramManager: RemoteDiagramImplementationManager, remoteId: number, id: string); updateDiagram(source: string, config: DiagramConfig): Promise; generateCompletionItems(source: string, config: DiagramConfig, position: Position): Promise; getSourceRange(element: string): Promise; renderPredictionDiagram(source: string, config: DiagramConfig): Promise; } //# sourceMappingURL=remoteDiagramImplementation.d.ts.map