import * as React from 'react'; import type { AnyObject } from "../../_util/type"; import type { ExpandableConfig, GetRowKey, InternalColumnsType, TriggerEventHandler } from '../interface'; import { renderExpandIcon } from '../utils/expandUtil'; export default function useExpand(prefixCls: string, expandable: ExpandableConfig | undefined, mergedData: readonly RecordType[], getRowKey: GetRowKey, defaultExpandIconColumnIndex?: number, verticalLine?: boolean, size?: 'default' | 'middle' | 'small'): readonly [(columns: InternalColumnsType) => InternalColumnsType, { indentSize: number; expandIconColumnIndex: number | undefined; expandedRowKeys?: readonly import("../../_util/type").SafeKey[] | undefined; defaultExpandedRowKeys?: readonly import("../../_util/type").SafeKey[] | undefined; expandedRowRender?: import("../interface").ExpandedRowRender | undefined; columnTitle?: React.ReactNode; expandRowByClick?: boolean | undefined; expandIcon?: import("../interface").RenderExpandIcon | undefined; onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined; onExpandedRowsChange?: ((expandedKeys: readonly import("../../_util/type").SafeKey[]) => void) | undefined; defaultExpandAllRows?: boolean | undefined; showExpandColumn?: boolean | undefined; childrenColumnName?: keyof RecordType | undefined; rowExpandable?: ((record: RecordType) => boolean) | undefined; columnWidth?: string | number | undefined; fixed?: import("../interface").FixedType | undefined; }, Set, import("../interface").RenderExpandIcon | typeof renderExpandIcon, TriggerEventHandler];