react-highlight-search
Version:
Text highlight with deep search through DOM elements.
9 lines • 729 B
TypeScript
import { ChangedNodeObjectType, MatchDataControllerType, MatchNodeCombinedDataType } from "../types";
export declare const restoreOriginNodes: (changedNodesObject: ChangedNodeObjectType[] | undefined) => void;
export declare const initMatchData: () => {
matchData: MatchNodeCombinedDataType[];
matchDataController: MatchDataControllerType;
};
export declare const addSpans: (matchDataArr: MatchNodeCombinedDataType[], setOriginNodes: (changedNodesObject: ChangedNodeObjectType[]) => void, spanClassName?: string) => void;
export declare const searchAcrossNodes: (textNodes: ChildNode[], startPosition: number, endPosition: number, matchDataController: MatchDataControllerType) => void;
//# sourceMappingURL=index.d.ts.map