import type { DataView } from '@visactor/vdataset'; import type { IWaterfallSeriesSpec } from '../../series/waterfall/interface'; import type { Datum } from '../../typings'; export interface IWaterfallOpt { indexField: string; valueField: string; seriesField?: string; startAs: string; endAs: string; total: IWaterfallSeriesSpec['total']; calculationMode: 'increase' | 'decrease'; seriesFieldName: { total: string; increase: string; decrease: string; }; stackInverse: boolean; groupData: () => DataView; } export declare const waterfall: (lastData: Array, op: IWaterfallOpt) => Datum[]; export interface IWaterfallFillEndOpt { indexField: string; valueField: string; seriesField?: string; total: IWaterfallSeriesSpec['total']; calculationMode: IWaterfallSeriesSpec['calculationMode']; } export declare const waterfallFillTotal: (data: Array, op: IWaterfallFillEndOpt) => Datum[];