import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { ResourceMap } from "@codingame/monaco-vscode-api/vscode/vs/base/common/map"; import { TernarySearchTree } from "@codingame/monaco-vscode-api/vscode/vs/base/common/ternarySearchTree"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IProgress, IProgressStep } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IReplaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/replace.service"; import { IFileMatch, ISearchComplete, ITextQuery, ITextSearchQuery } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search"; import { RangeHighlightDecorations } from "./rangeDecorations.js"; import { IChangeEvent, ISearchTreeFileMatch, ISearchTreeFolderMatch, ISearchTreeFolderMatchWithResource, ISearchTreeFolderMatchWorkspaceRoot, IPlainTextSearchHeading, ISearchResult, ITextSearchHeading } from "@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common/vscode/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon"; export declare abstract class TextSearchHeadingImpl extends Disposable implements ITextSearchHeading { private _allowOtherResults; private _parent; protected readonly instantiationService: IInstantiationService; private readonly uriIdentityService; protected _onChange: Emitter; readonly onChange: Event; private _isDirty; private _showHighlights; protected _query: QueryType | null; private _rangeHighlightDecorations; private disposePastResults; protected _folderMatches: ISearchTreeFolderMatchWorkspaceRoot[]; protected _otherFilesMatch: ISearchTreeFolderMatch | null; protected _folderMatchesMap: TernarySearchTree; resource: null; hidden: boolean; cachedSearchComplete: ISearchComplete | undefined; constructor(_allowOtherResults: boolean, _parent: ISearchResult, instantiationService: IInstantiationService, uriIdentityService: IUriIdentityService); hide(): void; parent(): ISearchResult; get hasChildren(): boolean; abstract get isAIContributed(): boolean; abstract id(): string; abstract name(): string; get isDirty(): boolean; getFolderMatch(resource: URI): ISearchTreeFolderMatch | undefined; add(allRaw: IFileMatch[], searchInstanceID: string, silent?: boolean): void; remove(matches: ISearchTreeFileMatch | ISearchTreeFolderMatch | (ISearchTreeFileMatch | ISearchTreeFolderMatch)[], ai?: boolean): void; groupFilesByFolder(fileMatches: FileMatch[]): { byFolder: ResourceMap; other: FileMatch[]; }; isEmpty(): boolean; findFolderSubstr(resource: URI): ISearchTreeFolderMatchWithResource | undefined; abstract query: QueryType | null; protected clearQuery(): void; folderMatches(): ISearchTreeFolderMatch[]; private disposeMatches; matches(): ISearchTreeFileMatch[]; get showHighlights(): boolean; toggleHighlights(value: boolean): void; get rangeHighlightDecorations(): RangeHighlightDecorations; fileCount(): number; count(): number; clear(clearAll?: boolean): void; dispose(): Promise; } export declare class PlainTextSearchHeadingImpl extends TextSearchHeadingImpl implements IPlainTextSearchHeading { private readonly replaceService; constructor(parent: ISearchResult, instantiationService: IInstantiationService, uriIdentityService: IUriIdentityService, replaceService: IReplaceService); id(): string; get isAIContributed(): boolean; replace(match: ISearchTreeFileMatch): Promise; name(): string; replaceAll(progress: IProgress): Promise; private set replacingAll(value); get query(): ITextQuery | null; set query(query: ITextQuery | null); private _createBaseFolderMatch; private createWorkspaceRootWithResourceImpl; private createNoRootWorkspaceImpl; }