import { PrintParams } from '@toolbox-web/grid/plugins/print'; export type { _Augmentation as _PrintAugmentation } from '@toolbox-web/grid/features/print'; /** * Print methods returned from useGridPrint. */ export interface PrintMethods { /** * Print the grid. * Opens browser print dialog after preparing the grid for printing. * @param params - Optional print parameters */ print: (params?: PrintParams) => Promise; /** * Check if a print operation is currently in progress. */ isPrinting: () => boolean; } /** * Hook for programmatic print control. * * Must be used within a DataGrid component tree with print enabled. * * @example * ```tsx * import { useGridPrint } from '@toolbox-web/grid-react/features/print'; * * function PrintToolbar() { * const { print, isPrinting } = useGridPrint(); * * const handlePrint = async () => { * await print({ title: 'My Report', isolate: true }); * console.log('Print dialog closed'); * }; * * return ( * * ); * } * ``` * @param selector - Optional CSS selector to target a specific grid element via * DOM query instead of using React context. Use when the component contains * multiple grids, e.g. `'tbw-grid.primary'` or `'#my-grid'`. */ export declare function useGridPrint(selector?: string): PrintMethods; //# sourceMappingURL=print.d.ts.map