@pdf-viewer/react
Version:
A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.
13 lines (12 loc) • 379 B
TypeScript
import { PreparePrintProgress, PrintOptions } from '../types';
interface PrintHookResult {
print: (options?: PrintOptions) => Promise<void>;
cancel: () => void;
progress: PreparePrintProgress;
isComplete: boolean;
isError: boolean;
error: Error | null;
showDefaultProgress?: boolean;
}
export declare const usePrint: () => PrintHookResult;
export {};