import { ChartSeries, ChartStackMode } from '../types'; import { NormalizedData, NormalizedRow } from './normalize'; export type StackMode = ChartStackMode; /** Value of the last displayed stack boundary, in the axis's units. */ export declare function stackInspectionValue(values: readonly (number | null)[], mode: StackMode): number | null; /** Whether a sum stack has values below zero, which then stack downward from the baseline. */ export declare function hasNegativeContribution(data: NormalizedData, ids: readonly string[]): boolean; export declare function validateStack(data: NormalizedData, series: readonly ChartSeries[], mode?: StackMode): void; /** A missing contribution makes the total unknown, not zero. Hidden series do not contribute. */ export declare function stackTotal(row: NormalizedRow, ids: readonly string[]): number | null; export declare function stackDomainData(data: NormalizedData, series: readonly ChartSeries[], mode?: StackMode): NormalizedData;