captide
Version:
Get hundreds of thousands of financial documents into your AI app 🚀
19 lines (18 loc) • 646 B
TypeScript
/**
* Utility functions for handling page-based operations in document viewers
*/
/**
* Extracts page number from elementId
* Format: #f2340000 where 0000 is page 1, 0001 is page 2, etc.
*
* @param elementId The element ID in the format #xxxxxxxx
* @returns The zero-based page number (0 for first page)
*/
export declare const extractPageNumberFromElementId: (elementId: string | null) => number | null;
/**
* Checks if a document type is a proxy statement
*
* @param sourceType The source type to check
* @returns Whether the document is a proxy statement
*/
export declare const isProxyStatement: (sourceType: string) => boolean;