import type { Totals } from '../common/interface'; import type { TotalStatus } from '../data-set'; export declare const getListBySorted: (list: string[], sorted: string[], mapValue?: (val: string) => string) => string[]; export declare const filterOutDetail: (values?: string[]) => string[]; export declare const customFlattenDeep: (data: Record[] | Record) => any[]; /** * arr1包含arr2,将arr2排到最后 * */ export declare const sortByItems: (arr1: string[], arr2: string[]) => string[]; export declare function getAggregationAndCalcFuncByQuery(totalsStatus: TotalStatus, totalsOptions?: Totals | null): { aggregation: "SUM" | "MIN" | "MAX" | "AVG" | "COUNT"; calcFunc: ((query: import("../data-set").Query, data: import("../data-set").CellData[], spreadsheet: import("@antv/s2").SpreadSheet) => number) | undefined; } | undefined;