import { default as React } from 'react'; import { default as StandardTable } from '../StandardTable'; import { ConfigItemType, TableSortingProps } from '../StandardTable.models'; import { ActiveTableFilterProps } from '../TableFilter/TableFilter'; import { SelectDisplayOption } from '../../Selects/SelectDisplay/SelectDisplay'; type MobileTableHeaderProps = { /** Ref to keep track of header position */ headerPositionRef: React.Ref; /** Props needed if the table has checkboxes. */ checkboxProps?: { checkAll: boolean; enableCheckAll: boolean; handleCheck: ({ checkboxValue, checkedItemData, name, }: { checkboxValue: boolean; checkedItemData: DataItem & { name?: string; }; name?: string; }) => void; handleCheckAllOrNone: (checkAll: boolean) => void; loading: boolean; someChecked: boolean; }; /** Main column to display on left */ mainColumn: ConfigItemType>; /** Secondary column to display on right */ activeColumn: ConfigItemType>; /** If the table has data */ hasData: boolean; /** Name by which the active mobile column is stored */ localStorageName: string; /** Used for displaying active custom filters if any */ activeFilters: React.ComponentProps['activeFilters']; /** Active column selected */ activeSecondaryColumn: string; /** Used for displaying active custom filters if any */ tableHeaderActiveFilters?: ActiveTableFilterProps; checkboxSelectOptions?: { options?: SelectDisplayOption[]; callout: (option: SelectDisplayOption) => void; active?: string; }; /** This value allows the checkAll to be shown, but in a disabled state */ disableCheckAll?: boolean; /** When true, the header "select all" checkbox is hidden while individual row checkboxes remain visible */ hideCheckAll?: boolean; } & TableSortingProps; declare const MobileTableHeader: ({ headerPositionRef, checkboxProps, mainColumn, activeColumn, hasData, sort, sortBy, localStorageName, activeFilters, activeSecondaryColumn, tableHeaderActiveFilters, checkboxSelectOptions, disableCheckAll, hideCheckAll, }: MobileTableHeaderProps) => React.JSX.Element; export default MobileTableHeader;