import React from 'react'; import { pdfjs } from 'react-pdf'; export interface PDFViewerProps extends React.HTMLAttributes { /** * url of pdf file */ fileUrl: string; /** * filename of pdf file */ fileName?: string; /** * the text direction * @default 'ltr' */ direction?: 'ltr' | 'rtl'; /** * minimum scaling * @default 0.50 */ MIN_SCALING?: number; /** * maximum scaling * @default 4.00 */ MAX_SCALING?: number; /** * The size of the zoom step * @default 0.1 */ ZOOM_STEP?: number; /** * 缩放比例下拉框的可选项 * @default [ 0.50, 0.75, 1.00, 1.25, 1.50, 2.00, 3.00, 4.00 ] */ scaleOptions?: number[]; /** * Function called in case of an error while loading a document. */ onDocumentLoadError?: (error: Error) => void; /** * Function called when the document is successfully loaded. */ onDocumentLoadSuccess?: (pdf: pdfjs.PDFDocumentProxy) => void; } export declare function PDFViewer(props: PDFViewerProps): React.ReactElement; export default PDFViewer; //# sourceMappingURL=index.d.ts.map