import { BaseRecord } from "@refinedev/core"; import React from "react"; import { Cell, Row } from "@tanstack/react-table"; //#region src/components/data-table/useTableHandlers.d.ts interface UseTableRowHandlersProps { onRowClick?: (row: Row) => void; getRowProps?: (row: Row) => React.HTMLAttributes; } interface UseTableCellHandlersProps { getCellProps?: (cell: Cell) => React.HTMLAttributes; } interface UseMobileColumnHidingProps { responsive?: boolean | { hideOnMobile?: boolean; }; hideColumnsOnMobile?: string[]; } /** * Type for the header cell handler function */ type HeaderCellHandler = (header: { column: { columnDef: { meta?: { headerClassName?: string; }; }; }; }) => React.HTMLAttributes; /** * Hook to generate row props with click handling and accessibility */ declare function useTableRowHandlers({ onRowClick, getRowProps }: UseTableRowHandlersProps): (row: Row) => React.HTMLAttributes; /** * Hook to generate cell props with meta class names */ declare function useTableCellHandlers({ getCellProps }: UseTableCellHandlersProps): (cell: Cell) => React.HTMLAttributes; /** * Hook to determine which columns should be hidden on mobile */ declare function useMobileColumnHiding({ responsive, hideColumnsOnMobile }: UseMobileColumnHidingProps): Set; /** * Hook to generate header cell props with meta class names */ declare function useTableHeaderCellHandlers(): HeaderCellHandler; //#endregion export { useMobileColumnHiding, useTableCellHandlers, useTableHeaderCellHandlers, useTableRowHandlers }; //# sourceMappingURL=useTableHandlers.d.ts.map