import { Disposable, DisposableStore } from "../../../../base/common/lifecycle.js"; import { IObservable, ITransaction, ObservablePromise } from "../../../../base/common/observable.js"; import { URI } from "../../../../base/common/uri.js"; import { ContextKeyValue } from "../../../../platform/contextkey/common/contextkey.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { Selection } from "../../../common/core/selection.js"; import { ITextModelService } from "../../../common/services/resolverService.service.js"; import { ITextModel } from "../../../common/model.js"; import { DiffEditorViewModel } from "../diffEditor/diffEditorViewModel.js"; import { RefCounted } from "../diffEditor/utils.js"; import { IDocumentDiffItem, IMultiDiffEditorModel } from "./model.js"; export declare class MultiDiffEditorViewModel extends Disposable { readonly model: IMultiDiffEditorModel; private readonly _instantiationService; private readonly _textModelService; private readonly _documents; private readonly _documentsArr; readonly isLoading: import("../../../../base/common/observable.js").IObservableWithChange; private readonly _waitForNewDiffs; readonly items: IObservable; readonly focusedDiffItem: import("../../../../base/common/observable.js").IObservableWithChange; readonly activeDiffItem: IObservable & { clearCache(transaction: ITransaction): void; setCache(newValue: DocumentDiffItemViewModel | undefined, tx: ITransaction | undefined): void; }; waitForDiffOr1s(): Promise; collapseAll(): void; expandAll(): void; collapse(item: DocumentDiffItemViewModel): void; expand(item: DocumentDiffItemViewModel): void; get contextKeys(): Record | undefined; constructor(model: IMultiDiffEditorModel, _instantiationService: IInstantiationService, _textModelService: ITextModelService); private _createItem; } export declare class DocumentDiffItemViewModel extends Disposable { private readonly _documentDiffItemRef; private readonly _editorViewModel; private readonly _instantiationService; /** * The diff editor view model keeps its inner objects alive. */ readonly diffEditorViewModelRef: RefCounted; get diffEditorViewModel(): DiffEditorViewModel; readonly waitForInitialDiffOr1s: ObservablePromise; readonly collapsed: import("../../../../base/common/observable.js").ISettableObservable; readonly lastTemplateData: import("../../../../base/common/observable.js").ISettableObservable<{ expandedContentHeight: number; selections: Selection[] | undefined; }, void>; get originalUri(): URI | undefined; get modifiedUri(): URI | undefined; get isBinary(): boolean; readonly isActive: IObservable; readonly isFirst: IObservable; setActive(tx: ITransaction | undefined): void; private readonly _isFocusedSource; readonly isFocused: import("../../../../base/common/observable.js").IObservableWithChange; setIsFocused(source: IObservable, tx: ITransaction | undefined): void; get documentDiffItem(): IDocumentDiffItem; readonly isAlive: import("../../../../base/common/observable.js").ISettableObservable; constructor(_documentDiffItemRef: RefCounted, _editorViewModel: MultiDiffEditorViewModel, originalTextModel: ITextModel, modifiedTextModel: ITextModel, diffEditorViewModelStore: DisposableStore, _instantiationService: IInstantiationService); getKey(): string; }