///
import type { Font } from "./font";
export interface ITriggerProps {
onClick: (event?: unknown) => void;
ref: (v: T) => void;
}
export interface IReactToPrintProps {
bodyClass?: string;
children?: React.ReactNode;
content?: () => React.ReactInstance | null;
copyStyles?: boolean;
documentTitle?: string;
fonts?: Font[];
nonce?: string;
onAfterPrint?: () => void;
onBeforeGetContent?: () => void | Promise;
onBeforePrint?: () => void | Promise;
onPrintError?: (errorLocation: "onBeforeGetContent" | "onBeforePrint" | "print", error: Error) => void;
pageStyle?: string | (() => string);
print?: (target: HTMLIFrameElement) => Promise;
removeAfterPrint?: boolean;
suppressErrors?: boolean;
trigger?: () => React.ReactElement>;
}