import { Emitter, Event } from "../../../../../base/common/event.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { URI } from "../../../../../base/common/uri.js"; import { ITextModel } from "../../../../../editor/common/model.js"; import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js"; import { ILabelService } from "../../../../../platform/label/common/label.service.js"; import { IUriIdentityService } from "../../../../../platform/uriIdentity/common/uriIdentity.service.js"; import { IAITextQuery, IFileMatch } from "../../../../services/search/common/search.js"; import { NotebookEditorWidget } from "../../../notebook/browser/notebookEditorWidget.js"; import { FileMatchImpl } from "../searchTreeModel/fileMatch.js"; import { ISearchResult, ISearchTreeFolderMatchWorkspaceRoot, ISearchTreeFolderMatch, ISearchTreeFolderMatchWithResource, ITextSearchHeading, IChangeEvent, ISearchModel, ISearchTreeFileMatch } from "../searchTreeModel/searchTreeCommon.js"; import { TextSearchHeadingImpl } from "../searchTreeModel/textSearchHeading.js"; export declare class AITextSearchHeadingImpl extends TextSearchHeadingImpl { hidden: boolean; constructor(parent: ISearchResult, instantiationService: IInstantiationService, uriIdentityService: IUriIdentityService); name(): string; id(): string; get isAIContributed(): boolean; get query(): IAITextQuery | null; set query(query: IAITextQuery | null); fileCount(): number; private _createBaseFolderMatch; private createWorkspaceRootWithResourceImpl; } export declare class AIFolderMatchWorkspaceRootImpl extends Disposable implements ISearchTreeFolderMatchWorkspaceRoot { private _resource; private _index; private _query; private _parent; private instantiationService; protected _onChange: Emitter; readonly onChange: Event; private _onDispose; readonly onDispose: Event; private readonly _id; private _name; protected _unDisposedFileMatches: Map; protected _fileMatches: Map; constructor(_resource: URI, _id: string, _index: number, _query: IAITextQuery, _parent: ITextSearchHeading, instantiationService: IInstantiationService, labelService: ILabelService); get resource(): URI; id(): string; index(): number; name(): string; count(): number; doAddFile(fileMatch: ISearchTreeFileMatch): void; private latestRank; createAndConfigureFileMatch(rawFileMatch: IFileMatch, searchInstanceID: string): FileMatchImpl; isAIContributed(): boolean; private onFileChange; get hasChildren(): boolean; parent(): ISearchTreeFolderMatch | ITextSearchHeading; matches(): (ISearchTreeFileMatch | ISearchTreeFolderMatchWithResource)[]; allDownstreamFileMatches(): ISearchTreeFileMatch[]; remove(matches: ISearchTreeFileMatch | ISearchTreeFolderMatchWithResource | (ISearchTreeFileMatch | ISearchTreeFolderMatchWithResource)[]): void; addFileMatch(raw: IFileMatch[], silent: boolean, searchInstanceID: string): void; isEmpty(): boolean; clear(clearingAll?: boolean): void; get showHighlights(): boolean; get searchModel(): ISearchModel; get _searchResult(): ISearchResult; get query(): IAITextQuery | null; getDownstreamFileMatch(uri: URI): ISearchTreeFileMatch | null; replaceAll(): Promise; recursiveFileCount(): number; doRemoveFile(fileMatches: ISearchTreeFileMatch[], dispose?: boolean, trigger?: boolean, keepReadonly?: boolean): void; replace(match: ISearchTreeFileMatch): Promise; replacingAll: boolean; bindModel(model: ITextModel): void; unbindNotebookEditorWidget(editor: NotebookEditorWidget, resource: URI): void; bindNotebookEditorWidget(editor: NotebookEditorWidget, resource: URI): Promise; hasOnlyReadOnlyMatches(): boolean; fileMatchesIterator(): IterableIterator; folderMatchesIterator(): IterableIterator; recursiveMatchCount(): number; private disposeMatches; dispose(): void; }