captide
Version:
Get hundreds of thousands of financial documents into your AI app 🚀
31 lines (30 loc) • 1.61 kB
TypeScript
/**
* Handle page-based document loading (8-K and proxy statements)
* @param iframe Reference to the iframe
* @param document Document object
* @param highlightedElementId Highlighted element ID
*/
export declare const handlePageBasedDocumentLoad: (iframe: HTMLIFrameElement, document: any, highlightedElementId: string | null) => void;
/**
* Handle highlighting for international filings (20-F, 40-F, 6-K, S-1)
* @param iframe Reference to the iframe
* @param highlightedElementId Highlighted element ID
*/
export declare const handleInternationalFilingHighlight: (iframe: HTMLIFrameElement, highlightedElementId: string | null) => void;
/**
* Handle standard document highlighting
* @param iframe Reference to the iframe
* @param document Document object
* @param highlightedElementId Highlighted element ID
* @param isNewDocument Whether this is a new document
* @param highlightElementsInRange Function to highlight elements in a range
*/
export declare const handleStandardDocumentHighlight: (iframe: HTMLIFrameElement, document: any, highlightedElementId: string | null, isNewDocument: boolean, highlightElementsInRange: (range: Range, commonAncestor: Element, iframeDocument: Document) => void) => void;
/**
* Handle scrolling to the highlighted element
* @param iframe Reference to the iframe
* @param scrollTarget Element to scroll to
* @param sourceType Document source type
* @param isNewDocument Whether this is a new document
*/
export declare const handleElementScrolling: (iframe: HTMLIFrameElement, scrollTarget: Element, sourceType: string, isNewDocument: boolean) => void;