import { type LangiumDocument, type LangiumDocuments } from 'langium'; import type { ImportResolver } from './import-resolver.js'; /** * Ensures the import graph is loaded from an entry file. * * @param entryFilePath - Absolute or workspace-relative path to entry file * @param langiumDocuments - The Langium documents manager * @param importResolver - DI-injected ImportResolver from the language services * @returns Set of URIs (as strings) for all documents in the import graph * @throws {Error} If entry file cannot be resolved or loaded */ export declare function ensureImportGraphFromEntryFile(entryFilePath: string, langiumDocuments: LangiumDocuments, importResolver: ImportResolver): Promise>; /** * Recursively builds the import graph from a document. * * @param document - The starting document * @param langiumDocuments - The Langium documents manager * @param importResolver - DI-injected ImportResolver from the language services * @returns Set of URIs (as strings) for all documents in the import graph */ export declare function ensureImportGraphFromDocument(document: LangiumDocument, langiumDocuments: LangiumDocuments, importResolver: ImportResolver): Promise>;