import { type ReactNode } from 'react'; import { type DateFormat, type DateLimits, type Era } from '../core/date.js'; export interface RootProps { /** ISO yyyy-mm-dd (the start in a range). */ value?: string; defaultValue?: string; /** After a committed change: blur, Enter, a pick, clear. */ onValueChange?: (value: string) => void; range?: boolean; endValue?: string; defaultEndValue?: string; onEndValueChange?: (value: string) => void; /** Range: a calendar pick began a range (its start), as Cally's `rangestart`; the value changes once the end is picked. */ onRangeStart?: (date: Date) => void; /** Range: a calendar pick finished a range (its end), as Cally's `rangeend`. */ onRangeEnd?: (date: Date) => void; /** Submits the (start) value with the form (a hidden input). */ name?: string; endName?: string; min?: string; max?: string; /** Days that can't be chosen; return a string to use it as the message. */ isDateDisabled?: DateLimits['isDateDisabled']; format?: DateFormat; /** Years in พ.ศ. (`be`, default for Thai) or ค.ศ. */ era?: Era; /** The language of the validation messages and the calendar's names (default: ``, else the browser's). */ locale?: string; disabled?: boolean; readOnly?: boolean; required?: boolean; /** Forces the error state (e.g. after server-side validation): `aria-invalid`, and the form won't submit. */ invalid?: boolean; /** With `invalid`: the message the form's validation carries. */ invalidMessage?: string; /** * Which picker opens: `auto` (default) = the calendar, in a bottom sheet on a phone; `custom` = the calendar as a * popover on every device; `sheet` = in a bottom sheet on every device; `native` = the OS date picker. */ picker?: 'auto' | 'custom' | 'sheet' | 'native'; /** The start box's id, and the base of the other ids (`-end`, `-calendar`); generated when left out. */ id?: string; children?: ReactNode; } /** Holds the dates, the typed text and the open state; renders its children (and the hidden inputs with `name` / `endName`). */ export declare function Root({ value, defaultValue, onValueChange, range, endValue, defaultEndValue, onEndValueChange, onRangeStart, onRangeEnd, name, endName, min, max, isDateDisabled, format, era: eraProp, locale: localeProp, disabled, readOnly, required, invalid, invalidMessage, picker, id, children, }: Readonly): import("react").JSX.Element;