import React from 'react'; import { type PrintDocumentArgs } from './use-print-document'; export interface PrintDocumentButtonProps extends Omit, 'onError'> { /** Model KEY the document is declared against (e.g. "SalesOrder"). */ model: string; /** Record id. */ id: string; /** Document key from contributions.documents[].key (e.g. "sale_ticket"). */ documentKey: string; /** print (default) | download | open — see usePrintDocument. */ mode?: PrintDocumentArgs['mode']; /** Download filename (mode="download"). */ filename?: string; /** Called if the fetch/print fails (surface it to a toast in the host). */ onError?: (err: unknown) => void; /** Rendered while the PDF is being fetched, in place of children. */ pendingLabel?: React.ReactNode; children?: React.ReactNode; } export declare function PrintDocumentButton({ model, id, documentKey, mode, filename, onError, pendingLabel, children, disabled, onClick, ...rest }: PrintDocumentButtonProps): React.JSX.Element; //# sourceMappingURL=print-document-button.d.ts.map