import { default as React } from 'react'; import { RowStylingProps } from './StandardTable.models'; export type DataItemExtended = DataItem & { name?: string; } & Partial; export declare const getTotalOptionsDefaultValue: (value?: React.ReactNode, totalCheckboxOptions?: number | null) => number | undefined; export declare const compareCheckedData: (baseData: DataItem, checkedData: DataItem, dataKey: keyof DataItem) => boolean; /** * Synthetic field added to nested child rows stored in checkedBoxes so they can be * scoped to their parent group. Prevents cross-group false-positive matches when two * child rows from different parents share the same dataKey value. * * this will remove after toggle- 'standardtable_new_nested_rows_update' clean up — * keep this constant and compareNestedCheckedData (drop the toggle guards that gate them). */ export declare const NESTED_PARENT_KEY: "_nestedParentKey"; /** * Parent-aware variant of compareCheckedData for nested child rows. * When the checkedBox carries a _nestedParentKey, also verifies it matches parentKey * so same-dataKey children across different parent groups are not confused. */ export declare const compareNestedCheckedData: (nestedRow: DataItem, checkedBox: DataItem, dataKey: keyof DataItem, parentKey: unknown) => boolean; type HandleCheck = { checkboxValue: boolean; checkedItemData: DataItemExtended; name?: string; }; export declare const useHandleCheck: ({ checkedBoxes, setCheckedBoxes, setDisplayData, data, dataKey, totalRowKey, setCheckAll, setCheckAllLoaded, enableCheckAll, setMakeCallout, mounted, }: { checkedBoxes: (DataItem & { checked?: boolean; })[]; setCheckedBoxes: React.Dispatch>; setDisplayData: React.Dispatch>; data: (DataItem & { checked?: boolean; })[]; dataKey: keyof DataItem; totalRowKey: keyof DataItem; setCheckAll: React.Dispatch>; setCheckAllLoaded: React.Dispatch>; enableCheckAll?: boolean; setMakeCallout: React.Dispatch>; mounted: boolean; }) => ({ checkboxValue, checkedItemData, name, }: HandleCheck) => void; type CheckedDataItem = { data: DataItemExtended[]; checkedBoxes: DataItemExtended[]; totalRowKey: keyof DataItem; dataKey: keyof DataItem; }; export declare const checkedData: ({ data, checkedBoxes, totalRowKey, dataKey, }: CheckedDataItem) => { someChecked: boolean; allChecked: boolean; }; export declare const useIsChecked: ({ checkedBoxes, dataKey, }: { checkedBoxes: DataItemExtended[]; dataKey: keyof DataItem; }) => (data: DataItemExtended) => DataItemExtended | undefined; export {};