import { PointReducer, PointReducerConfig, PointReducerInstance, PointReducerAccumulator } from "./PointReducer"; import { Bind, StructuredProp } from "../../ui/Prop"; import { AccessorChain } from "../../data/createAccessorModelProxy"; export interface MinMaxAccumulator extends PointReducerAccumulator { params: any; min: { x: any; y: any; p?: any; }; max: { x: any; y: any; p?: any; }; } export interface MinMaxFinderConfig extends PointReducerConfig { /** A binding used to receive the x value of the point with the minimum value */ minX?: Bind | AccessorChain; /** A binding used to receive the y value of the point with the minimum value */ minY?: Bind | AccessorChain; /** A binding used to receive the x value of the point with the maximum value */ maxX?: Bind | AccessorChain; /** A binding used to receive the y value of the point with the maximum value */ maxY?: Bind | AccessorChain; /** An object used for filtering data points. Available as accumulator.params inside the onMap function. */ params?: StructuredProp; } /** Find minimum and maximum points of a point series */ export declare class MinMaxFinder extends PointReducer { constructor(config?: MinMaxFinderConfig); declareData(...args: any[]): void; onInitAccumulator: (acc: MinMaxAccumulator, { data }: PointReducerInstance) => void; onMap: (acc: MinMaxAccumulator, x: any, y: any, name: string, p: any) => void; onReduce: (acc: MinMaxAccumulator, instance: PointReducerInstance) => void; } //# sourceMappingURL=MinMaxFinder.d.ts.map