captide
Version:
Get hundreds of thousands of financial documents into your AI app 🚀
15 lines (14 loc) • 651 B
TypeScript
/**
* Highlight elements in a range between two highlighted elements
* @param range Document range
* @param commonAncestor Common ancestor element
* @param iframeDocument Iframe document
*/
export declare function highlightElementsInRange(range: Range, commonAncestor: Element, iframeDocument: Document): void;
/**
* Finds the most relevant scroll target among multiple highlighted elements.
* @param elements - NodeList of highlighted elements
* @param sourceType - Document source type
* @returns The element to scroll to
*/
export declare const findBestScrollTarget: (elements: NodeListOf<Element>, sourceType: string) => Element | null;