import { ReactElement } from 'react'; import { ChartAxisStyle, ChartBarAppearance, ChartLoadingStyle } from '../types'; import { LoadingMark } from '../marks/contract'; export { skeletonClock, SKELETON_CYCLE } from './use-skeleton-clock'; export interface LoadingLayerProps { width: number; height: number; left: number; right: number; top: number; bottom: number; visible: boolean; opacity: number; reducedMotion: boolean; id: string; /** The marks the skeleton stands in for. */ marks?: 'line' | 'bars' | 'area-stack' | 'bar-stack' | 'columns'; mark?: LoadingMark; compact?: boolean; barCount?: number; seriesCount?: number; barAppearances?: readonly ChartBarAppearance[]; barWidth?: number; showLine?: boolean; lineDepth?: boolean; /** Mirror the real axis: which placeholders and grid rows to draw. Defaults to `classic`. */ axis?: ChartAxisStyle; /** Padding between the plot edges and label placeholders, as on the real axis. */ inset?: number; /** Gap between the plot edges and the skeleton shape; 0 when marks run edge to edge. */ edge?: number; /** * How the skeleton moves: `shimmer` (default) sweeps a highlight over still shapes, `draw` * reveals bars or contours in order, and `breathe` lets them rise and settle. */ loadingStyle?: ChartLoadingStyle; } export declare const SKELETON_CONTOUR: number[]; export interface SkeletonGeometry { plotWidth: number; plotBottom: number; contour: string; areaPath: string; gridRows: string; yBars: string; xBars: string; } export declare function buildSkeletonGeometry({ width, height, left, right, top, bottom, axis, inset, edge, }: Pick): SkeletonGeometry; export declare function LoadingLayer({ width, height, left, right, top, bottom, visible, opacity, reducedMotion, id, marks, mark, compact, barCount, seriesCount, barAppearances, barWidth, showLine, lineDepth, axis, inset: labelInset, edge, loadingStyle, }: LoadingLayerProps): ReactElement | null;