import { DatePickerProps } from '@heroui/react'; import { Control, FieldValues, Path, RegisterOptions } from 'react-hook-form'; /** * Styled HeroUI `DatePicker`. Consolidates the former `InputDateRHF` and `InputDateTimePickerRHF` * into one base + RHF adapters: * - `InputDate.WithRHFControl` — form value is a `DateValue` (`@internationalized/date`). * - `InputDate.WithRHFControlISO` — form value is an ISO string; conversion happens internally. * * Domain-specific bounds (e.g. "within the last 2 weeks") are NOT baked in — pass `minValue` / * `maxValue` (or a `rules.validate`) at the call site instead. */ declare function InputDate(props: DatePickerProps): import("react").JSX.Element; declare namespace InputDate { var displayName: string; var WithRHFControl: typeof WithControl; var WithRHFControlISO: typeof WithControlISO; } type BaseControlProps = DatePickerProps & { control: Control; name: Path; rules?: RegisterOptions>; }; /** RHF adapter — form value is a `DateValue`. */ declare function WithControl(props: BaseControlProps): import("react").JSX.Element; type ISOControlProps = BaseControlProps & { /** When `granularity="day"`, snap the stored time to the end of the day (23:59:59). */ toEndOfDay?: boolean; onValueChange?(value?: string): void; }; /** RHF adapter — form value is an ISO string; DateValue conversion happens internally. */ declare function WithControlISO(props: ISOControlProps): import("react").JSX.Element; export default InputDate;