import { CSSProperties } from 'react'; import { EmbedPdfContainer, PDFViewerConfig, PluginRegistry } from '@embedpdf/snippet'; export * from '@embedpdf/snippet'; export interface PDFViewerProps { /** Full configuration for the PDF viewer */ config?: PDFViewerConfig; /** CSS class name for the container div */ className?: string; /** Inline styles for the container div */ style?: CSSProperties; /** Callback when the viewer is initialized */ onInit?: (container: EmbedPdfContainer) => void; /** Callback when the registry is ready */ onReady?: (registry: PluginRegistry) => void; } export interface PDFViewerRef { /** The EmbedPdfContainer element */ container: EmbedPdfContainer | null; /** Promise that resolves to the PluginRegistry */ registry: Promise | null; } /** * React component for embedding PDF documents * * @example * ```tsx * import { PDFViewer } from '@embedpdf/react-pdf-viewer'; * * function App() { * return ( * { * console.log('PDF viewer ready', registry); * }} * /> * ); * } * ``` */ export declare const PDFViewer: import('react').ForwardRefExoticComponent>; export default PDFViewer; //# sourceMappingURL=index.d.ts.map