import { Disposable, DisposableCollection } from '../../common/disposable'; import { Event, Emitter } from '../../common/event'; import { Tree, TreeNode } from './tree'; import { TreeDecoration } from './tree-decorator'; import { FuzzySearch } from './fuzzy-search'; import { LabelProvider } from '../label-provider'; export declare class TreeSearch implements Disposable { protected readonly tree: Tree; protected readonly fuzzySearch: FuzzySearch; protected readonly labelProvider: LabelProvider; protected readonly disposables: DisposableCollection; protected readonly filteredNodesEmitter: Emitter[]>; protected _filterResult: FuzzySearch.Match[]; protected _filteredNodes: ReadonlyArray>; protected _filteredNodesAndParents: Set; protected init(): void; getHighlights(): Map; /** * Resolves to all the visible tree nodes that match the search pattern. */ filter(pattern: string | undefined): Promise>>; protected addAllParentsToFilteredSet(node: TreeNode): void; /** * Returns with the filtered nodes after invoking the `filter` method. */ get filteredNodes(): ReadonlyArray>; /** * Event that is fired when the filtered nodes have been changed. */ get onFilteredNodesChanged(): Event>>; passesFilters(node: TreeNode): boolean; dispose(): void; protected fireFilteredNodesChanged(nodes: ReadonlyArray>): void; protected toCaptionHighlight(match: FuzzySearch.Match): TreeDecoration.CaptionHighlight; protected mapRange(range: FuzzySearch.Range): TreeDecoration.CaptionHighlight.Range; } //# sourceMappingURL=tree-search.d.ts.map