import * as React from 'react'; import type { ColumnsType, ColumnType, Direction, FixedType, GetRowKey, Key, RenderExpandIcon, TriggerEventHandler } from '../../interface'; export declare function convertChildrenToColumns(children: React.ReactNode): ColumnsType; /** * Parse `columns` & `children` into `columns`. */ declare function useColumns({ prefixCls, columns, children, expandable, expandedKeys, columnTitle, getRowKey, onTriggerExpand, expandIcon, rowExpandable, expandIconColumnIndex, direction, expandRowByClick, columnWidth, fixed, scrollWidth, clientWidth, }: { prefixCls?: string; columns?: ColumnsType; children?: React.ReactNode; expandable: boolean; expandedKeys: Set; columnTitle?: React.ReactNode; getRowKey: GetRowKey; onTriggerExpand: TriggerEventHandler; expandIcon?: RenderExpandIcon; rowExpandable?: (record: RecordType) => boolean; expandIconColumnIndex?: number; direction?: Direction; expandRowByClick?: boolean; columnWidth?: number | string; clientWidth: number; fixed?: FixedType; scrollWidth?: number; }, transformColumns: (columns: ColumnsType) => ColumnsType): [ columns: ColumnsType, flattenColumns: readonly ColumnType[], realScrollWidth: undefined | number ]; export default useColumns;