/** * @description 得到一些初始化数据 */ import React from 'react'; export interface ISortList { sortTitle: string; sortKey: string; } export declare function setSortKey(sortStorageKey: string, value: any): void; declare function useSort(children: React.ReactNode, sortStorageKey: string): { /** 初始化顺序,根据传入得组件children元素得到,重置时需要用到它 */ initSortList: ISortList[]; /** 当前传入的组件排列顺序 */ currentSortList: ISortList[]; /** 组件子元素得拷贝 */ newChildren: any; }; export default useSort;