import { Histogram, HistogramConfigInterface } from '@cosmograph/ui'; import { CosmographInclusiveSelectionComponent } from '../_abstract/inclusive'; import { CosmographHistogramConfig } from './config'; /** * The `CosmographHistogram` class manages histogram visualization within Cosmograph. * It handles creation, configuration, and interaction with the histogram component, * as well as integration with Cosmograph data and filtering mechanisms. */ export declare class CosmographHistogram extends CosmographInclusiveSelectionComponent { private _dataExtent; private _visualExtent; /** * Returns the current selection of the histogram in data values. * @returns The current selection or `undefined` if no selection is active. */ getCurrentSelection(): number[] | undefined; /** * Returns the current selection of the histogram in pixel coordinates. * @returns The current selection in pixel coordinates. */ getCurrentSelectionInPixels(): number[] | undefined; /** * Returns the current width of the histogram bars. * @returns The current width of the histogram bars. */ getBarWidth(): number | undefined; /** * Sets the selection of the histogram in pixel coordinates. * @param selection - The new selection in pixel coordinates, or `undefined` to clear the selection. */ setSelection(selection?: [number, number]): void; get defaultConfig(): CosmographHistogramConfig; get accessor(): string; protected fetchData(): Promise; protected createUIComponent(targetElement: HTMLElement): Histogram; protected createComponentConfig(config?: CosmographHistogramConfig): HistogramConfigInterface; protected updateHighlightedData(data: number[] | undefined): void; protected onResetClientSelections(): void; protected onConfigUpdate(): Promise; } export type { CosmographHistogramConfig };