import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model"; import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service"; import { IFileStatWithPartialMetadata } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files"; import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service"; import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service"; import { IFileMatch, IPatternInfo, ITextSearchPreviewOptions, ITextSearchResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search"; import { FindMatchDecorationModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel"; import { IReplaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/replace.service"; import { ISearchTreeFileMatch, ISearchTreeFolderMatch, ISearchTreeFolderMatchWorkspaceRoot, ISearchTreeMatch } from "@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common/vscode/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon"; import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; export declare class FileMatchImpl extends Disposable implements ISearchTreeFileMatch { protected _query: IPatternInfo; private _previewOptions; private _maxResults; private _parent; protected rawMatch: IFileMatch; private _closestRoot; protected readonly modelService: IModelService; private readonly replaceService; private static readonly _CURRENT_FIND_MATCH; private static readonly _FIND_MATCH; private static getDecorationOption; protected _findMatchDecorationModel: FindMatchDecorationModel | undefined; protected _onChange: Emitter<{ didRemove?: boolean; forceUpdateModel?: boolean; }>; readonly onChange: Event<{ didRemove?: boolean; forceUpdateModel?: boolean; }>; private _onDispose; readonly onDispose: Event; protected _resource: URI; private _fileStat?; private _model; private _modelListener; protected _textMatches: Map; private _removedTextMatches; protected _selectedMatch: ISearchTreeMatch | null; private _name; private _updateScheduler; private _modelDecorations; private _context; get context(): Map; constructor(_query: IPatternInfo, _previewOptions: ITextSearchPreviewOptions | undefined, _maxResults: number | undefined, _parent: ISearchTreeFolderMatch, rawMatch: IFileMatch, _closestRoot: ISearchTreeFolderMatchWorkspaceRoot | null, modelService: IModelService, replaceService: IReplaceService, labelService: ILabelService); get closestRoot(): ISearchTreeFolderMatchWorkspaceRoot | null; hasReadonlyMatches(): boolean; createMatches(): void; bindModel(model: ITextModel): void; private onModelWillDispose; private unbindModel; protected updateMatchesForModel(): void; protected updatesMatchesForLineAfterReplace(lineNumber: number, modelChange: boolean): Promise; private updateMatches; updateHighlights(): void; id(): string; parent(): ISearchTreeFolderMatch; get hasChildren(): boolean; matches(): ISearchTreeMatch[]; textMatches(): ISearchTreeMatch[]; remove(matches: ISearchTreeMatch | ISearchTreeMatch[]): void; private replaceQ; replace(toReplace: ISearchTreeMatch): Promise; setSelectedMatch(match: ISearchTreeMatch | null): void; getSelectedMatch(): ISearchTreeMatch | null; isMatchSelected(match: ISearchTreeMatch): boolean; count(): number; get resource(): URI; name(): string; addContext(results: ITextSearchResult[] | undefined): void; add(match: ISearchTreeMatch, trigger?: boolean): void; protected removeMatch(match: ISearchTreeMatch): void; resolveFileStat(fileService: IFileService): Promise; get fileStat(): IFileStatWithPartialMetadata | undefined; set fileStat(stat: IFileStatWithPartialMetadata | undefined); dispose(): void; hasOnlyReadOnlyMatches(): boolean; }