declare module 'react-pdf' { import * as React from 'react'; interface TextItem { str: string; transform: number[]; width: number; height: number; fontName: string; } export interface DocumentProps { file: string | Uint8Array | ArrayBuffer; onLoadSuccess?: ({ numPages }: { numPages: number }) => void; onLoadError?: (error: Error) => void; className?: string; error?: React.ReactNode; noData?: React.ReactNode; loading?: React.ReactNode; children?: React.ReactNode; } export interface PageProps { pageNumber: number; renderTextLayer?: boolean; renderAnnotationLayer?: boolean; className?: string; customTextRenderer?: (textItem: TextItem) => string; } export const Document: React.FC; export const Page: React.FC; export const pdfjs: { GlobalWorkerOptions: { workerSrc: string; }; version: string; }; } declare module '*.css' { const content: Record; export default content; }