import { Result } from "../util/result.js"; import { Cancellation, FileSystemProvider, URI } from "langium"; import { ModuleManifest } from "./manifest.js"; export interface ModuleDescriptor { /** The location of the module root directory. */ Root: URI; /** The parsed manifest data of the module. */ Manifest: ModuleManifest; } /** Parses and validates the manifest file from the given module root or manifest URI. */ export declare function ModuleDescriptor(fs: FileSystemProvider, rootOrManifest: URI, cancel?: Cancellation.CancellationToken): Promise>;