import type { CompletionItem } from "./completionItem.js"; import type { DiagramEngine } from "@hylimo/diagram"; import type { DiagramConfig } from "@hylimo/diagram-common"; /** * Completion engine which can generate completion items by executing the given code */ export declare class CompletionEngine { private readonly diagramEngine; /** * Fault tolerant parser used to parse the code */ private readonly parser; /** * Creates a new CompletionEngine with the given interpreter and max execution steps * * @param diagramEngine the diagram engine to use */ constructor(diagramEngine: DiagramEngine); /** * Generates completion items based on the given text and position * * @param text the code to execute * @param config the configuration to use * @param position the position of the cursor * @returns the generated complete items or undefined if no items could be generated */ complete(text: string, config: DiagramConfig, position: number): CompletionItem[] | undefined; } //# sourceMappingURL=completionEngine.d.ts.map