import { ComponentWithAs as _, ThemingProps } from '@chakra-ui/react'; import { CalendarBaseProps, UseProvideCalendarProps } from './CalendarBase'; export interface CalendarProps extends CalendarBaseProps, Pick { /** * The current selected date. * If provided, the input will be a controlled input, and `onChange` must be provided. */ value?: Date | null; /** * Callback fired when the date changes. * If `value` is provided, this must be provided. * @param {Date | null} date The new selected date. */ onChange?: (date: Date | null) => void; /** * Callback fired when the currently viewed month changes. * @param {number} currMonth The new month being viewed. */ onMonthChange?: (currMonth: number) => void; /** * Callback fired when the currently viewed year changes. * @param {number} currYear The new year being viewed. */ onYearChange?: (currYear: number) => void; /** The default selected date, used if input is uncontrolled */ defaultValue?: Date | null; /** Function to determine whether a date should be made unavailable. */ isDateUnavailable?: (d: Date) => boolean; /** Whether to render a loading state. */ isLoading?: boolean; /** Color scheme for component */ colorScheme?: ThemingProps<'Calendar'>['colorScheme']; } export declare const Calendar: _<"input", CalendarProps>;