import type { RefObject } from 'react';
import type { DefaultTheme } from 'styled-components';
export declare const HIGHLIGHT_NAME = "search-highlight";
export declare const createHighlightStyles: (theme: DefaultTheme) => import("styled-components").RuleSet<object>;
/**
 * @example useHighlight(ref, /search/gi);
 * @param ref - A ref to the DOM element whose text nodes should be searched.
 * @param pattern - A RegExp to match against text content. Ranges for each match are highlighted.
 */
declare const useHighlight: (ref: RefObject<Element | null>, pattern?: RegExp) => void;
export default useHighlight;
//# sourceMappingURL=useHighlight.d.ts.map