import { TreeNode, ViewerState } from "./types.js";
export declare function findMatches(roots: TreeNode[], query: string, cols?: number): string[];
export declare function expandAncestorsOf(state: ViewerState, matchIds: string[]): ViewerState;
export type Segment = {
    text: string;
    bg?: "yellow";
};
export declare function highlightMatches(text: string, query: string): Segment[];
