import { SkeletonExitOrigin } from './lifecycle/skeleton-exit'; import { ReactNode } from 'react'; import { ChartLoadingStyle, ChartMotion } from './types'; export interface ActivitySelection { hour: number; row: Row | null; value: number | null; pinned: boolean; } export interface ActivityRingProps { data: readonly Row[]; hour: (row: Row) => number; value: (row: Row) => number | null; /** Explicit positive upper bound for dot intensity. Values must be in [0, maximum]. */ maximum: number; /** Minutes per position across a full 24-hour cycle. Must divide 1,440. */ bucketMinutes?: number; /** Number of radial dots used to show intensity. */ dotDensity?: number; unit: string; formatValue?: (value: number) => string; /** Content at the centre; defaults to the peak reading. */ center?: ReactNode; onSelectionChange?: (selection: ActivitySelection | null) => void; /** `loading` keeps showing the last accepted day until new data is ready. */ status?: 'ready' | 'loading'; loadingStyle?: ChartLoadingStyle; /** Set while the skeleton leaves (lifecycle/skeleton-exit.tsx): where it sinks to. */ skeletonLeaving?: SkeletonExitOrigin; /** A new key drops the accepted day and any selection. */ resetKey?: string | number; motion?: ChartMotion; height?: number; /** Turns each dot into a small puck with walls receding up and to the right. */ depth?: boolean; 'aria-label': string; className?: string; } interface Slot { hour: number; row: Row | null; value: number | null; } export declare function activitySlots(data: readonly Row[], hour: (row: Row) => number, value: (row: Row) => number | null, maximum: number, bucketMinutes?: number): readonly Slot[]; /** * The 24-hour dot ring inside `ActivityRingCard`: one column of dots per time slot, filled by * how much happened then. One tab stop; arrow keys step around the day and Enter pins a slot. */ export declare function ActivityRing({ data, hour, value, maximum, bucketMinutes, dotDensity, unit, formatValue, center, onSelectionChange, status, loadingStyle, skeletonLeaving, resetKey, motion, height, depth, className, 'aria-label': ariaLabel, }: ActivityRingProps): import("react/jsx-runtime").JSX.Element; export {};