import { EditorView } from '@codemirror/view'; import { DiffType } from 'api-smart-diff'; import { DiffBlockData } from '../diff-builder/common'; import { BlockTreeIndex } from '../utils/block-index'; /** * Apply filter-based folding to an editor view. * Folds blocks that don't match the filter; unfolds blocks that do. * * When treeIndex and pre-computed blockLineRanges are provided, uses * O(M) set operations instead of O(N) tree walk and lineMap scan. */ export declare function applyFilterFolds(view: EditorView, blocks: DiffBlockData[], filters: DiffType[], precomputedBlockLineRanges?: Map, treeIndex?: BlockTreeIndex): void;