import { ColumnsType } from '../'; export interface IConfigInfo { [props: string]: { isChangeable?: any; isDisplay?: any; isRequired?: any; }; } interface IProps { columns: ColumnsType | undefined; hiddenColumnDynamicIcon?: boolean; showColumnDynamic?: boolean; showColumnDynamicKey?: string; /**新增行删除行方法 */ onAddAndDelHandle?: (type: 'add' | 'del', index: number) => void; /**隐藏新增icon */ hideAddIcon?: boolean; /**新增icon提示文字 */ addIconText?: string; /**隐藏删除icon */ hideDelIcon?: boolean; showDelAllBtn?: boolean; delAllChange?: any; /**删除icon提示文字 */ delIconText?: string; showDynamicHandle?: () => void; /**表格列编辑事件 */ onEditableSave?: (record: RecordType, index: number | undefined, dataIndex: string) => void; /** 表格列配置相关信息 */ configInfo?: IConfigInfo; copyByKey?: any; onTableChange?: any; /** 当前页 */ currentPage?: any; currentDataSource?: any; preDataSource?: any; rowKey?: any; dataSourceRef?: any; expandableChildrenColumnName?: string; customSortHandle?: any; customOrder?: any; setCustomOrder?: any; isSort?: boolean; menuShow?: any; getMenuInfoByCell: ({ record, index, value, key }: { record: any; index: any; value: any; key: any; }) => void; } export declare const getTableLayoutFullData: (columns: any, tableLayout: any) => any; export declare const LOCALSTORAGE_KEY = "ztui_dynamic_table_key"; export declare const LOCALSTORAGE_LRU_KEY = "ztui_dynamic_table_lru_key"; export declare const LOCALSTORAGE_LRU_MAX_SIZE = 500; export declare function getStorage(key: any): any; export declare function setDynamicKey(dynamicStorageKey: string, value: any): void; declare function useColumns(props: IProps): { newColumns: ColumnsType; dynamicColumns: ColumnsType; refreshColumnsHandle: (columns?: any) => void; }; export default useColumns;