import { Event } from "../../../../base/common/event.js"; import { URI } from "../../../../base/common/uri.js"; import { Range } from "../../../../editor/common/core/range.js"; import { IModelService } from "../../../../editor/common/services/model.service.js"; import { IFileDialogService } from "../../../../platform/dialogs/common/dialogs.service.js"; import { IInstantiationService, ServicesAccessor } from "../../../../platform/instantiation/common/instantiation.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; import { ITelemetryService } from "../../../../platform/telemetry/common/telemetry.service.js"; import { GroupIdentifier, IRevertOptions, IMoveResult, EditorInputCapabilities, IUntypedEditorInput } from "../../../common/editor.js"; import { SearchConfiguration } from "./constants.js"; import { SearchEditorModel } from "./searchEditorModel.js"; import { IPathService } from "../../../services/path/common/pathService.service.js"; import { ITextFileSaveOptions } from "../../../services/textfile/common/textfiles.js"; import { ITextFileService } from "../../../services/textfile/common/textfiles.service.js"; import { IWorkingCopyService } from "../../../services/workingCopy/common/workingCopyService.service.js"; import { IWorkingCopySaveEvent } from "../../../services/workingCopy/common/workingCopy.js"; import { ISearchComplete } from "../../../services/search/common/search.js"; import { EditorInput } from "../../../common/editor/editorInput.js"; import { IResourceEditorInput } from "../../../../platform/editor/common/editor.js"; import { ThemeIcon } from "../../../../base/common/themables.js"; export declare const SEARCH_EDITOR_EXT = ".code-search"; export declare class SearchEditorInput extends EditorInput { readonly modelUri: URI; readonly backingUri: URI | undefined; private readonly modelService; protected readonly textFileService: ITextFileService; private readonly fileDialogService; private readonly instantiationService; private readonly workingCopyService; private readonly telemetryService; private readonly pathService; static readonly ID: string; get typeId(): string; get editorId(): string | undefined; getIcon(): ThemeIcon; get capabilities(): EditorInputCapabilities; private memento; private dirty; private lastLabel; private readonly _onDidChangeContent; readonly onDidChangeContent: Event; private readonly _onDidSave; readonly onDidSave: Event; private oldDecorationsIDs; get resource(): URI; ongoingSearchOperation: Promise | undefined; model: SearchEditorModel; private _cachedResultsModel; private _cachedConfigurationModel; constructor(modelUri: URI, backingUri: URI | undefined, modelService: IModelService, textFileService: ITextFileService, fileDialogService: IFileDialogService, instantiationService: IInstantiationService, workingCopyService: IWorkingCopyService, telemetryService: ITelemetryService, pathService: IPathService, storageService: IStorageService); save(group: GroupIdentifier, options?: ITextFileSaveOptions): Promise; tryReadConfigSync(): SearchConfiguration | undefined; private serializeForDisk; private configChangeListenerDisposable; private registerConfigChangeListeners; resolveModels(): Promise; saveAs(group: GroupIdentifier, options?: ITextFileSaveOptions): Promise; getName(maxLength?: number): string; setDirty(dirty: boolean): void; isDirty(): boolean; rename(group: GroupIdentifier, target: URI): Promise; dispose(): void; matches(other: EditorInput | IUntypedEditorInput): boolean; getMatchRanges(): Range[]; setMatchRanges(ranges: Range[]): Promise; revert(group: GroupIdentifier, options?: IRevertOptions): Promise; private backup; private suggestFileName; toUntyped(): IResourceEditorInput | undefined; copy(): EditorInput; } export declare const getOrMakeSearchEditorInput: (accessor: ServicesAccessor, existingData: ({ from: "model"; config?: Partial; modelUri: URI; backupOf?: URI; } | { from: "rawData"; resultsContents: string | undefined; config: Partial; modelUri?: URI; } | { from: "existingFile"; fileUri: URI; })) => SearchEditorInput;