import { type HistogramItem } from '../../stats/histogram.js';
import type { TestDef } from '../../renderer/buildWaferMap.js';
import { type SaveImageHandler } from './chartShell.js';
export interface HistogramPanelOptions {
    title?: string;
    items: HistogramItem[];
    testDefs: TestDef[];
    selectedTestNumber?: number;
    colorScheme?: string;
    onSaveImage?: SaveImageHandler;
    /**
     * When the Analysis tab's "Group by" is active, this panel switches to an
     * overlaid multi-series view (one coloured series per group over shared
     * buckets, with a click-to-emphasize legend) instead of the single-item
     * view. `items` above is ignored when `groups` is provided. Absent ⇒
     * today's plain per-item view with a wafer selector.
     */
    groups?: {
        key: string;
        items: HistogramItem[];
    }[];
}
export interface HistogramPanelHandle {
    card: HTMLElement;
    /** Cross-panel link (e.g. from the capability panel): switch to `testNumber` in place. */
    setTest: (testNumber: number) => void;
    destroy: () => void;
}
export declare function renderHistogramPanel(options: HistogramPanelOptions): HistogramPanelHandle;
//# sourceMappingURL=histogram.d.ts.map