import { IReference, IDisposable } from "../../../base/common/lifecycle.js"; import { URI } from "../../../sessions/sessions.web.main.internal.js"; import { ILanguageSelection } from "../languages/language.js"; import { ITextBufferFactory } from "../model.js"; import { IResolvedTextEditorModel, ITextModelContentProvider } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService"; export declare const ITextModelService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface ITextModelService { readonly _serviceBrand: undefined; /** * Provided a resource URI, it will return a model reference * which should be disposed once not needed anymore. */ createModelReference(resource: URI): Promise>; /** * Creates an in-memory document owned by this service. The returned reference and * references acquired through its URI keep the document alive. Dispose references, * not the underlying text model. */ createSyntheticDocument(value: string | ITextBufferFactory, languageSelection: ILanguageSelection | null): Promise>; /** * Registers a specific `scheme` content provider. */ registerTextModelContentProvider(scheme: string, provider: ITextModelContentProvider): IDisposable; /** * Check if the given resource can be resolved to a text model. */ canHandleResource(resource: URI): boolean; }