import { AriaAttributes } from 'react'; import { TableInstance } from 'react-table'; /** * If the table is sorted, return the aria-sort value. * @param {boolean} isSorted - boolean * @param {"descending" | "ascending"} [sortedDir] - The direction of the sort. * @returns "none" */ export declare const calculateAriaSortValue: (isSorted: boolean, sortedDir?: "descending" | "ascending") => AriaAttributes["aria-sort"]; /** * Given an array of row ids, return an object with the same keys and values. * @param rowIds - string[] * @returns An object with the rowIds as keys and true as values. */ export declare const convertRowIdsArrayToObject: (rowIds: string[]) => Record; /** * Sets all table rows to selected or unselected based on the `selected` parameter and return toggled row ids. * @param instance - TableInstance * @param selected - boolean, whether to select or unselect the rows. * @param handleRowToggled - (rowIds: string[]) => void, the user-defined callback * @returns void */ export declare const setTableRowsSelected: >(instance: TableInstance, selected: boolean, handleRowToggled?: (rowIds: string[]) => void) => void; /** * Sets all page rows to selected or unselected based on the `selected` parameter and return toggled row ids. * @param instance - TableInstance * @param selected - boolean, whether to select or unselect the rows. * @param handleRowToggled - (rowIds: string[]) => void, the user-defined callback * @returns void */ export declare const setPageRowsSelected: >(instance: TableInstance, selected: boolean, handleRowToggled?: (rowIds: string[]) => void) => void;