import { PublishDiagnosticsParams, WorkDoneProgressServerReporter } from 'vscode-languageserver/node'; import { URI } from 'vscode-uri'; import { CommandTree } from '.'; import { DataSource, VanillaData } from '../data/VanillaData'; import { JsonNode } from '../nodes'; import { IdentityNode } from '../nodes/IdentityNode'; import { SyntaxComponent } from '../plugins'; import { CacheType } from './ClientCache'; import { Config } from './Config'; import { DatapackDocument } from './DatapackDocument'; export declare const Uri: typeof URI; export declare type DocNode = SyntaxComponent | JsonNode; export declare type Uri = URI; export declare type DocsOfUris = Map>; /** * A map of namespaced IDs (in form of `type|ID`) and URIs. */ export declare type UrisOfIds = Map; export declare type CreateWorkDoneProgressServerReporterFunction = () => Promise; export declare type FetchConfigFunction = (uri: Uri) => Promise; export declare type GetCommandTreeFunction = (version: string) => Promise; export declare type GetUriFromIdFunction = (pathExists: PathAccessibleFunction, roots: Uri[], uris: UrisOfStrings, urisOfIds: UrisOfIds, id: IdentityNode, category: CacheType, preferredRoot?: Uri) => Promise; export declare type GetVanillaDataFunction = (versionOrLiteral: string | null, source: DataSource) => Promise; export declare type PathAccessibleFunction = (path: string) => Promise; export declare type PublishDiagnosticsFunction = (params: PublishDiagnosticsParams) => void; export declare type ReadFileFunction = (path: string) => Promise; export declare type UrisOfStrings = Map;