import { CSSProperties, KeyboardEventHandler, ReactElement, ReactNode } from 'react'; import { AnimatedNumberVariant } from '../motion/animated-number'; import { ChartMotion, ChartPalette, ChartStyle, ChartSurface } from '../types'; export interface ChartCardProps { children?: ReactNode; /** `elevated` (default) lifts the card; `outline` is border-only; `ghost` drops the frame. */ surface?: ChartSurface; /** Series colors for everything inside the card. */ palette?: ChartPalette; /** `none` stops decorative motion inside the card, such as loading shimmer. */ motion?: ChartMotion; /** How the headline animates: `count` (default), `pop`, `slide`, `roll`, `flow`, or `scramble`. */ numberStyle?: AnimatedNumberVariant; /** * A glass tab tucked behind the card's top edge, e.g. a caption, a command, or actions. With a * badge, `className` and `style` apply to the frame that holds the tab and the card. */ badge?: ReactNode; className?: string; style?: CSSProperties | ChartStyle; 'aria-label'?: string; onKeyDown?: KeyboardEventHandler; } /** The card surface every Lilt card shares: padding, radius, border, and theme tokens. */ export declare function ChartCard({ children, surface, palette, motion, numberStyle, badge, className, style, 'aria-label': ariaLabel, onKeyDown, }: ChartCardProps): ReactElement; export interface CardBadgeProps { children?: ReactNode; className?: string; } /** * The glass tab a card's `badge` renders. On its own above another panel, tuck the tab's lower * edge behind that panel: `position: relative; z-index: 1; margin-top: -12px`. */ export declare function CardBadge({ children, className }: CardBadgeProps): ReactElement; export interface ChartCardHeaderProps { children?: ReactNode; /** Right-aligned content such as a period select or legend. */ aside?: ReactNode; className?: string; } export declare function ChartCardHeader({ children, aside, className }: ChartCardHeaderProps): import("react/jsx-runtime").JSX.Element; export declare function ChartCardTitle({ children }: { children?: ReactNode; }): import("react/jsx-runtime").JSX.Element; export interface ChartCardValueProps { value: number | null; format?: (value: number) => string; /** Shown beside the value, e.g. a delta chip or the hovered x label. */ children?: ReactNode; loading?: boolean; motion?: 'auto' | 'none'; } export declare function ChartCardValue({ value, format, children, loading, motion, }: ChartCardValueProps): import("react/jsx-runtime").JSX.Element; export interface ChartCardDeltaProps { /** Fractional change: 0.082 renders as +8.2%. */ value: number; /** Direction is not desirability. Use `inverse` when a decrease is good, `neutral` for neither. */ tone?: 'default' | 'inverse' | 'neutral'; format?: (value: number) => string; } export declare function ChartCardDelta({ value, tone, format }: ChartCardDeltaProps): import("react/jsx-runtime").JSX.Element; /** Quiet secondary text beside the value, e.g. the hovered x label. */ export declare function ChartCardCaption({ children }: { children?: ReactNode; }): import("react/jsx-runtime").JSX.Element; export interface ChartCardRangeOption { id: string; label: string; } export interface ChartCardRangeProps