import { PDFDocumentProxy } from 'pdfjs-dist'; import { PdfSource } from '../types'; type Decryptor = (bytes: Uint8Array, password: string) => Promise; interface UsePdfDocumentResult { pdfDoc: PDFDocumentProxy | null; sourceBytes: Uint8Array | null; pageCount: number; loading: boolean; error: Error | null; needsPassword: boolean; unlocking: boolean; unlockFailed: boolean; unlock: (password: string) => void; } export declare const usePdfDocument: (source: PdfSource | null, decryptor?: Decryptor) => UsePdfDocumentResult; export {};