import React from 'react'; import { pdfjs } from 'react-pdf/dist/esm/entry'; export interface ViewerProps { /** * pdf 文件的 url */ fileUrl: string; /** * 渲染的页号 */ pageNumber: number; /** * 页数 */ pageTotal: number; /** * 缩放比例 */ scale: number; /** * Function called in case of an error while loading a document. */ onLoadError?: (error: Error) => void; /** * Function called when the document is successfully loaded. */ onDocumentLoadSuccess?: (pdf: pdfjs.PDFDocumentProxy) => void; } export declare function Viewer(props: ViewerProps): React.ReactElement; //# sourceMappingURL=viewer.d.ts.map