UNPKG

captide

Version:

Get hundreds of thousands of financial documents into your AI app 🚀

22 lines (21 loc) • 798 B
import React from 'react'; import { DocumentViewerContextValue, FetchDocumentFn } from '../types'; interface DocumentViewerProviderProps { children: React.ReactNode; fetchDocumentFn?: FetchDocumentFn; } /** * Provider component for DocumentViewer state management * * This component manages document viewing state and provides methods for loading and * interacting with documents. Documents are only loaded when explicitly requested through * the loadDocument method, never automatically. */ export declare const DocumentViewerProvider: React.FC<DocumentViewerProviderProps>; /** * Hook for accessing the DocumentViewer context * * @throws {Error} If used outside of a DocumentViewerProvider */ export declare const useDocumentViewer: () => DocumentViewerContextValue; export {};