import { ComponentProps, FC } from "react"; import NvLabel from '../NvLabel'; interface NvDateFieldProps extends Omit, "onChange"> { range?: boolean; value?: (Date | null)[] | Date | null; label?: string; description?: string; error?: string; format?: string; digitPlaceholder?: string; placeholder?: string; hideAfterChange?: boolean; fullwidth?: boolean; disablePastDates?: boolean; onChange?: (result: (Date | null)[] | Date | null) => void; clearable?: boolean; onClear?: () => void; } /** * Functional component for a date field that can be either a single date picker or a range date picker. * * @param range Indicates if the date field is for a range of dates. * @param value The selected date(s) value. * @param label The label for the date field. * @param description Additional description for the date field. * @param error Error message to display for the date field. * @param format The format of the date to display. * @param digitPlaceholder The placeholder for digits in the date field. * @param placeholder The placeholder text for the date field. * @param hideAfterChange Determines if the date picker should hide after a date selection. * @param fullwidth Indicates if the date field should take full width. * @param disablePastDates Flag to disable selection of past dates. * @param onChange Function to handle date value changes. * @param clearable - Indicates if the clear button is displayed. * @param onClear - Callback fired when the clear button is clicked. * @returns A date field component that renders either a single date picker or a range date picker. */ export declare const NvDateField: FC; export default NvDateField;