import React from 'react'; import type { CSSProperties, ReactNode } from 'react'; import 'react-pdf/dist/Page/AnnotationLayer.css'; import 'react-pdf/dist/Page/TextLayer.css'; import type { RotationDegrees } from './types.js'; import { type PDFPasswordFormProps } from './PDFPasswordForm.js'; type Props = { file: string; pageMaxWidth: number; isSmallScreen: boolean; maxCanvasWidth?: number; maxCanvasHeight?: number; maxCanvasArea?: number; renderPasswordForm?: ({ isPasswordInvalid, onSubmit, onPasswordChange }: Omit) => ReactNode | null; LoadingComponent?: ReactNode; ErrorComponent?: ReactNode; shouldShowErrorComponent?: boolean; onLoadError?: () => void; containerStyle?: CSSProperties; contentContainerStyle?: CSSProperties; rotation?: RotationDegrees; }; declare function PDFPreviewer({ file, pageMaxWidth, isSmallScreen, maxCanvasWidth, maxCanvasHeight, maxCanvasArea, LoadingComponent, ErrorComponent, renderPasswordForm, containerStyle, contentContainerStyle, shouldShowErrorComponent, onLoadError, rotation, }: Props): JSX.Element; declare namespace PDFPreviewer { var displayName: string; } declare const _default: React.MemoExoticComponent; export default _default; //# sourceMappingURL=PDFPreviewer.d.ts.map