import type { Channel, ChartKey, ChartMark, ChartMarkMotionOptions, ChartMarkState, ChartRectStateStyle, VisualChannel } from './types.js'; export interface WaffleOptions extends ChartMarkMotionOptions { id?: string; z?: Channel; color?: Channel; key?: Channel; /** Semantic value represented by one complete cell. Defaults to 1. */ unit?: number; /** Rounds cumulative unit boundaries before allocating cells. */ round?: boolean; /** Empty pixels between complete cells. Defaults to 1. */ gap?: number; radius?: number; fill?: VisualChannel; fillOpacity?: number; stroke?: VisualChannel; strokeOpacity?: number; strokeWidth?: number; states?: readonly ChartMarkState>[]; } export interface WaffleYOptions extends WaffleOptions { y: Channel; /** Fixed cells per row. By default packing follows the final plot bounds. */ columns?: number; } export interface WaffleXOptions extends WaffleOptions { x: Channel; /** Fixed cells per column. By default packing follows the final plot bounds. */ rows?: number; } /** Packs cumulative values left-to-right and then bottom-to-top. */ export declare function waffleY(source: Iterable, options: WaffleYOptions>): ChartMark; /** Packs cumulative values bottom-to-top and then left-to-right. */ export declare function waffleX(source: Iterable, options: WaffleXOptions>): ChartMark;