import { JSONPath } from "../../../../base/common/json.js"; import { IObservable } from "../../../../base/common/observable.js"; import { ITextModel } from "../../../../editor/common/model.js"; import { IModelService } from "../../../../editor/common/services/model.service.js"; import { ILanguageService } from "../../../../editor/common/languages/language.service.js"; import { IMultiDiffEditorLayoutDebugState } from "../../../../editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js"; type JsonValue = null | boolean | number | string | readonly JsonValue[] | object; export type JsonPatchOperation = { readonly op: "add" | "replace"; readonly path: string; readonly value: JsonValue; } | { readonly op: "remove"; readonly path: string; }; export type JsonPatch = readonly (JsonPatchOperation | JsonPatch)[]; export interface IMultiDiffEditorLayoutDebugStateProvider { getLayoutDebugState(): IObservable; } export declare function isMultiDiffEditorLayoutDebugStateProvider(candidate: object | undefined): candidate is IMultiDiffEditorLayoutDebugStateProvider; export declare function createMultiDiffEditorLayoutDebugModel(state: IObservable, modelService: IModelService, languageService: ILanguageService): ITextModel; export declare function createJsonPatch(previous: JsonValue, next: JsonValue, path?: JSONPath): JsonPatch; export declare function applyJsonPatchToText(text: string, patch: JsonPatch): string; export {};