import type { StackOptions } from './stack.js'; import { type TransformLineage, type TransformValue, type TransformValueOutput } from './transform.js'; import type { ChartKey, ChartValue } from './types.js'; export interface StackRowsYOptions = TransformValue, TY extends TransformValue = TransformValue, TZ extends TransformValue | undefined = TransformValue | undefined> extends StackOptions { x: TX; y: TY; z?: TZ; } export interface StackRowsXOptions = TransformValue, TY extends TransformValue = TransformValue, TZ extends TransformValue | undefined = TransformValue | undefined> extends StackOptions { x: TX; y: TY; z?: TZ; } export type StackRowsYDatum = TDatum & TransformLineage & { readonly x: TXValue; readonly y: number; readonly y1: number; readonly y2: number; readonly z: TZValue; }; export type StackRowsXDatum = TDatum & TransformLineage & { readonly x: number; readonly x1: number; readonly x2: number; readonly y: TYValue; readonly z: TZValue; }; type StackSeries = TZ extends TransformValue ? TransformValueOutput : 'value'; export declare function stackRowsY, const TY extends TransformValue, const TZ extends TransformValue | undefined = undefined>(source: Iterable, options: StackRowsYOptions): StackRowsYDatum, ChartValue>, Extract, ChartKey>>[]; export declare function stackRowsX, const TY extends TransformValue, const TZ extends TransformValue | undefined = undefined>(source: Iterable, options: StackRowsXOptions): StackRowsXDatum, ChartValue>, Extract, ChartKey>>[]; export {};