import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type ChartSkin } from "../shared/types.js"; export interface HistogramProps { /** Raw sample values; the chart bins them. */ values: number[]; /** Bucket count override. Defaults to Sturges' rule on the sample size. */ bins?: number; /** Optional heading shown above the plot. */ title?: string; /** Names the distribution (e.g. "Response times"); leads the accessible name. */ label?: string; success?: boolean; destructive?: boolean; compact?: boolean; hideGrid?: boolean; hideAxes?: boolean; /** Formats bin edges in ticks, the flag, and the accessible name. */ formatValue?: (v: number) => string; /** Press-to-inspect: the selected bin index (controlled). Pass null for none. */ selected?: number | null; /** Press-to-inspect: the initially selected bin (uncontrolled). */ defaultSelected?: number; /** Fired when a press selects a bin (or clears it with null). */ onSelect?: (index: number | null) => void; /** E2E hook forwarded to the root element. */ testID?: string; /** Outer layout composition only (width/flex within a parent), never a restyle hook. */ style?: StyleProp; } /** Build a Histogram from a platform skin. */ export declare function createHistogram(skin: ChartSkin): (props: HistogramProps) => import("react").JSX.Element; //# sourceMappingURL=histogram.shared.d.ts.map