import { DateType } from '@mezzanine-ui/core/calendar'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; export interface CalendarHalfYearsProps extends Omit, 'onClick' | 'children'> { /** * Provide if you have a custom disabling logic. * The method takes the date object as its parameter. */ isHalfYearDisabled?: (date: DateType) => boolean; /** * Provide if you have a custom logic for checking if the half-year is in range. * The method takes the date object as its parameter. */ isHalfYearInRange?: (date: DateType) => boolean; /** * Click handler for the button of each half-year. * The method takes the date object as its parameter. */ onClick?: (target: DateType) => void; /** * Mouse enter handler for the button of each half-year. * The method takes the date object as its parameter. */ onHalfYearHover?: (target: DateType) => void; /** * The reference date for getting the half-years range and computing the date object. */ referenceDate: DateType; /** * The half-year will be marked as active if it matches the same half-year of any value in the array. */ value?: DateType[]; } /** * The react component for `mezzanine` calendar half-years. * This component displays half-years for 5 years. * You may use it to compose your own calendar. */ declare function CalendarHalfYears(props: CalendarHalfYearsProps): import("react/jsx-runtime").JSX.Element; export default CalendarHalfYears;