import { PrintParams } from '@toolbox-web/grid/plugins/print'; import { Ref } from 'vue'; 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; /** * Whether the grid has finished its first render. * * @since 2.5.0 */ isReady: Ref; } /** * Composable for programmatic print control. * * Must be used within a component that contains a TbwGrid with print enabled. * * @example * ```vue * * * * ``` * @param selector - Optional CSS selector to target a specific grid element via * DOM query instead of using Vue's provide/inject. 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