import type { CompletionItem } from "./completionItem.js"; import type { Range } from "@hylimo/core"; /** * An error which aborts the execution of the program and provides the context for completion */ export declare class CompletionError extends Error { readonly completionItems: CompletionItem[]; readonly completionRange: Range; /** * Creates a new CompletionError * * @param completionItems the items to provide for completion * @param completionRange the range in which the completion should occur */ constructor(completionItems: CompletionItem[], completionRange: Range); /** * Checks if the given error is an CompletionError * * @param error the error to check * @returns true if the error is an CompletionError */ static isCompletionError(error: any): error is CompletionError; } //# sourceMappingURL=completionError.d.ts.map