/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { TableGroupExpandableSettings } from './TableGroupExpandableSettings'; /** * The descriptor used to define the expanded state of a group. */ export type GroupExpandDescriptor = { value: any; field: string; expanded?: boolean; groups?: GroupExpandDescriptor[]; }; /** @hidden */ export declare enum GROUP_EXPAND_ACTION { TOGGLE = "GROUP-EXPAND_TOGGLE", EXPAND = "GROUP-EXPAND_EXPAND", COLLAPSE = "GROUP-EXPAND_COLLAPSE", RESET = "GROUP-EXPAND_RESET" } /** @hidden */ export type GroupExpandAction = { type: GROUP_EXPAND_ACTION; group: GroupState; }; /** @hidden */ export type GroupState = { value: any; field: string; expanded?: boolean; parents?: GroupState[]; }; /** @hidden */ export declare const getGroupExpandableOptions: (groupExpandable?: boolean | TableGroupExpandableSettings) => TableGroupExpandableSettings; /** @hidden */ export declare const findGroupExpand: (groupExpand: GroupExpandDescriptor[], group: GroupState) => GroupExpandDescriptor | undefined; /** @hidden */ export declare const isExpanded: (groupExpand: GroupExpandDescriptor[], group: GroupState) => boolean; /** @hidden */ export declare const flatToTree: (flat: GroupState[]) => GroupExpandDescriptor[]; /** @hidden */ export declare const groupExpandReducer: (state: GroupExpandDescriptor[], action: GroupExpandAction, options?: TableGroupExpandableSettings) => GroupExpandDescriptor[];