import type { SorterType, OrderItem, ColumnItem, ColumnsType, RecordType, ColItem, RequestOption, ResponseOption } from './types'; /** * 服务端数据源默认请求参数名称 */ export declare const DEFAULT_REQUEST: RequestOption; /** * 服务端数据源默认响应参数名称 */ export declare const DEFAULT_RESPONSE: ResponseOption; /** * 默认升序值 */ export declare const DEFAULT_ASCEND_VALUE = "asc"; /** * 默认降序值 */ export declare const DEFAULT_DESCEND_VALUE = "desc"; /** * 获取任意数据任意字段的值, 支持多层 *.* * @param data 数据 * @param field 字段 */ export declare function getFieldValue(data: any, field: string | ((d: any) => any)): any; /** * 获取封装后的排序值 * @param sorter ATable 排序值 */ export declare function getOrderItems(sorter: SorterType): OrderItem[]; /** * 前端分页排序 * @param datasource 数据 * @param sorter 排序值 * @param page 页码 * @param limit 每页数量 * @param needPage 是否分页 */ export declare function reloadData(datasource: RecordType[], sorter: SorterType, page?: number, limit?: number, needPage?: boolean): { page: number; data: RecordType[]; total: number; }; /** * 前端分页排序时获排序后的全部数据 * @param datasource 数据 * @param sorter 排序值 */ export declare function getSortedData(datasource: RecordType[], sorter: SorterType): RecordType[]; /** * 获取初始显示的表格列 * @param columns 列配置 */ export declare function getInitColumns(columns: ColumnsType): ColumnsType; /** * 获取初始显示的表格列 * @param columns 列配置 * @param cacheKey 缓存的 key * @param sortable 是否排序 */ export declare function getInitColumnsAndCache(columns: ColumnsType, cacheKey?: string, sortable?: boolean): ColumnsType; /** * 获取列 key */ export declare function getColKey(column: ColumnItem): string; /** * 获取显示的列配置 * @param columns 原始列数据 * @param cols 列配置数据 * @param checkedIds 选中数据的 id * @param sortable 是否进行排序 */ export declare function getCheckedColumns(columns: ColumnsType | undefined, cols: ColItem[], checkedIds: string[], sortable?: boolean): ColumnsType; /** * 获取列配置下拉列表数据 * @param columns 原始列数据 * @param untitledText 未命名列文字 */ export declare function getSettingCols(columns?: ColumnsType, untitledText?: string, cacheKey?: string): { data: any[]; checkedIds: any[]; isAllChecked: boolean; isIndeterminate: boolean; }; /** * 获取缓存的列配置下拉列表数据 * @param cacheKey 缓存的 key */ export declare function getCacheCols(cacheKey?: string): { data: any[]; checkedIds: any[]; isAllChecked: boolean; isIndeterminate: boolean; } | undefined; /** * 获取列配置缓存的 key */ export declare function getColsCacheKey(cacheKey: string): string; /** * 获取表格密度缓存的 key */ export declare function getSizeCacheKey(cacheKey: string): string; /** * 获取缓存的表格密度 * @param cacheKey 缓存的 key */ export declare function getCacheSize(cacheKey?: string): any;