import type { Ref, UnwrapRef } from 'vue'; import type { CheckboxProps, DefaultRecordType, ExpandType, FlatRecord, GetRowKey, Key, TableRowSelection } from '../components/interface'; export declare type KeyEntities = Record; export declare type FlattenRecordsType = { flattenData: Ref[]>; keyEntities: Ref; pageDataRowKeys: Ref; pageDataEnableRowKeys: Ref; checkboxPropsMap: Ref>>; getRowFlattenIndexByKey: (key: Key) => number | undefined; isMyChildren: (parentKey: Key, childrenKey: Key) => boolean; getRowByFlattenIndex: (index: number) => FlatRecord; }; export declare function getPosition(level: string | number, index: number): string; export default function useFlattenRecords(pageDataRef: Ref, childrenColumnNameRef: Ref, expandedKeysRef: Ref>, getRowKeyRef: Ref>, expandType: Ref, mergedRowSelection: Ref | undefined>): FlattenRecordsType>;