import { RefObject } from "react"; import type { Font } from "./font"; export interface UseReactToPrintOptions { bodyClass?: string; contentRef?: RefObject; documentTitle?: string; fonts?: Font[]; ignoreGlobalStyles?: boolean; nonce?: string; onAfterPrint?: () => void; onBeforePrint?: () => Promise; onPrintError?: (errorLocation: "onBeforePrint" | "print", error: Error) => void; pageStyle?: string; preserveAfterPrint?: boolean; print?: (target: HTMLIFrameElement) => Promise; suppressErrors?: boolean; copyShadowRoots?: boolean; }