import { NumericKey, TimeKey } from './keys'; import { ObservationsCardProps, ObservationScene } from './observations-card'; /** Calendar dates are UTC days. Date-only strings are validated rather than rolled over. */ export declare function utcDate(value: unknown): number | null; export interface CalendarHeatmapCardProps> extends Omit, 'legend' | 'legendSwatch'> { date: TimeKey; value: Key; /** Inclusive UTC date bounds. Default to the observed range. */ from?: string | number | Date; to?: string | number | Date; /** Monday by default; Sunday is 0. */ weekStartsOn?: 0 | 1; /** UTC day used to distinguish unobserved future dates. Defaults to today. */ today?: string | number | Date; domain?: readonly [number, number]; } export type CalendarOptions = Pick>, 'from' | 'to' | 'today' | 'weekStartsOn' | 'domain' | 'color' | 'locale'>; export interface CalendarCell { day: number; column: number; row: number; datum: Row | null; reading: number | null; /** Position of the reading in the domain, 0 to 1. */ share: number; color: string; future: boolean; } /** Validates the rows and places every day of the range in a week column and weekday row. */ export declare function calendarCells(data: readonly Row[], date: string, value: string, options: CalendarOptions): { error?: string; cells: CalendarCell[]; weeks: number; weekStart: 0 | 1; }; export declare function cellMark(cell: CalendarCell): { id: string; label: string; datum: Row | null; value: number | null; color: string; missing: boolean; future: boolean; detail: string | undefined; }; export declare const monthFormatter: (locale: string | undefined) => Intl.DateTimeFormat; export declare function calendarLayout(data: readonly Row[], date: string, value: string, width: number, height: number, options?: CalendarOptions): ObservationScene; export declare function CalendarHeatmapCard>({ date, value, from, to, weekStartsOn, today, domain, color, locale, ...props }: CalendarHeatmapCardProps): import("react/jsx-runtime").JSX.Element;