import { URI } from 'vscode-uri'; import type { Connection } from 'vscode-languageserver'; import type { TextDocument } from 'vscode-languageserver-textdocument'; import { normalizeFsPath } from '../../utils/index.js'; type PathIsInside = (path: string, potentialParent: string) => boolean; export declare class WorkspaceFolderService { #private; constructor(pathIsInsideFn: PathIsInside, uriModule: typeof URI, normalizeFsPathFn: typeof normalizeFsPath); /** * Clears the cached workspace folders when the set of workspace folders * changes. */ clearCache(): void; /** * Gets the workspace folder for a given document. If the document is an * untitled file, then the first open workspace folder is returned. * @param connection The language server connection to use to get available * workspace folders. * @param document The document to get the workspace folder for. */ getWorkspaceFolder(connection: Connection, document: TextDocument): Promise; } export {};