import { ReactElement } from 'react'; import { BoxSummary } from '../engine/box'; import { CartesianCardProps } from './cartesian-card'; import { KeysOfType } from './keys'; /** One box, with its x value and the row it came from. */ interface BoxRow { x: string | number | Date; median: number | null; box: BoxSummary | null; source: Row; } type SharedProps = Omit, 'median'>, 'series' | 'data' | 'ranges' | 'x' | 'headlineSeries' | 'pillSeries' | 'target' | 'forecast' | 'bleed' | 'tiles' | 'aggregate'>; export interface BoxPlotCardProps extends SharedProps { data?: readonly Row[]; /** One box per row, placed by this field: labels, numbers, or dates. */ x: KeysOfType; /** Field holding each row's raw samples; Lilt computes the quartiles, whiskers and outliers. */ samples: KeysOfType; /** Names the series in hover. Defaults to "Median". */ label?: string; color?: string; /** Draw samples beyond the whiskers as dots. Defaults to true. */ outliers?: boolean; /** Draws each box as a solid block receding up and to the right; the front keeps Q1 and Q3. */ depth?: boolean; } /** * Distributions side by side: quartile boxes, a median line, Tukey whiskers and outliers, * computed from each row's raw samples. The headline is the median of every sample. */ export declare function BoxPlotCard({ data, x, samples, label, color, outliers, depth, headline, ...props }: BoxPlotCardProps): ReactElement; export {};