/** * Group expansion management module for IOI Table. * Handles group expand/collapse operations. */ import type { ComputedRef, Ref } from 'vue'; import type { IoiGroupExpandPayload, IoiSemanticEvent, IoiSemanticEventType, IoiTableState } from '../../types'; import type { GroupInfo } from './grouping'; /** * Group expansion API returned to the composable. */ export interface GroupExpansionApi { toggleGroupExpansion: (groupKey: string) => void; expandAllGroups: () => void; collapseAllGroups: () => void; isGroupExpanded: (groupKey: string) => boolean; } /** * Options for group expansion module. */ export interface GroupExpansionOptions { onGroupExpand?: (payload: IoiGroupExpandPayload) => void; } /** * Event emitter function type. */ type EventEmitter = (type: IoiSemanticEventType, payload: TPayload) => IoiSemanticEvent; /** * Creates group expansion management functions. */ export declare function createGroupExpansion(state: Ref, groups: ComputedRef, options: GroupExpansionOptions, emitEvent: EventEmitter): GroupExpansionApi; export {};