import { AgChartOptions } from 'ag-charts-types'; type ChartRecord = Record; /** Pixels of horizontal width allotted per data point when a chart scrolls horizontally. */ export declare const CHART_SCROLL_ITEM_WIDTH_PX = 56; /** Pixels of vertical height allotted per data point when a horizontal-bar chart scrolls. */ export declare const CHART_SCROLL_ITEM_HEIGHT_PX = 32; /** Coerce a numeric (pixel) or string CSS size into a CSS length, or `undefined` when unset. */ export declare const getCssSize: (value: number | string | undefined) => string | undefined; /** * Build the explicit `height`/`width` (and matching `max-*`) style for a widget shell. * An explicit dimension also caps its `max-*` so the widget never grows past it. */ export declare const buildWidgetStyle: (dimensions: { height?: number | string; maxHeight?: number | string; maxWidth?: number | string; width?: number | string; }) => Record; /** Whether any explicit dimension bounds the widget shell (switching it to constrained flex layout). */ export declare const getIsWidgetConstrained: (dimensions: { height?: number | string; maxHeight?: number | string; maxWidth?: number | string; width?: number | string; }) => boolean; /** * Minimum chart height for a widget: when a horizontal-bar chart scrolls vertically, * grow past the base height so every data point keeps its allotted row height. */ export declare const getScrollableChartMinHeight: (params: { baseMinHeight: number; dataCount: number; enableChartScrolling: boolean; isHorizontalScrollingChart: boolean; itemHeight?: number; }) => number; /** * Overflow for a scrollable chart container, locked to the one axis the chart can grow * along: a horizontal-bar chart only ever grows taller, every other chart only ever * grows wider. Leaving both axes scrollable lets a chart that already fits scroll in the * direction it never overflows in, which reads as a stuck or jittery chart. * * Pair with the `pv-scrollbar-visible` utility - the platform's overlay scrollbars take * no layout space and stay hidden until a scroll gesture, so the affordance is invisible * without it. That utility also reserves a permanent scrollbar gutter, which is right for * a text panel but costs a chart 8px of dead plot area, so it is reset here: the chart * canvas resizes with the container anyway, so there is no layout shift to guard against. */ export declare const getChartScrollOverflowStyle: (params: { enableChartScrolling: boolean; isHorizontalScrollingChart: boolean; }) => Record | undefined; /** * Inline style for the scrollable chart content: horizontal-bar charts grow vertically * per data point; all other charts grow horizontally, never below `minContentWidth`. */ export declare const getChartScrollContentStyle: (params: { chartMinHeight: number; dataCount: number; enableChartScrolling: boolean; isHorizontalScrollingChart: boolean; minContentWidth: number; reserveWidth?: number; }) => Record | undefined; /** Coerce to a plain object record, or `undefined` when the value is not one. */ export declare const asObjectRecord: (value: unknown) => ChartRecord | undefined; export declare const limitDataRows: (data: T[], dataLimit: number | undefined) => T[]; export declare const getChartDataLength: (options: AgChartOptions) => number; export declare const getIsHorizontalBarChart: (options: AgChartOptions) => boolean; export declare const applyChartWidgetOptions: (options: AgChartOptions, config: { dataLimit?: number; hideAxisTitles?: boolean; hideValueAxis?: boolean; showAxes?: boolean; }) => AgChartOptions; export {};