import { PassThroughProps } from '../../../types'; export interface YearSelectorProps { /** * The minimum selectable year * Defaults to 1900. */ min?: number; /** * The maximum selectable year. * Defaults to 2200. */ max?: number; /** * The currently selected year */ value?: number | null; /** * The default value of the selected year */ defaultValue?: number; /** * The function to call when the selected year changes * * @param year - The year that is selected. */ onChange?: (year: number | null) => void; /** * The function to call when the selected year is affirmatively changed. * This is called when the user confirms the selection by pressing Enter, pressing Space, or clicking. * * @param year - The year that is selected. */ onConfirm?: (year: number | null) => void; /** * If a `value` or `defaultValue` is not provided, this will be used as the starting scroll position (and initial focus for accessibility). */ startingYear?: number; /** * The number of columns to display. * @default 2 */ columns?: number; /** * The class name to apply to the component. */ className?: string; /** * Controls whether a year can be deselected, i.e. set to null. * @default false */ required?: boolean; /** * Controls whether the component allows the user to select a year. * @default false */ disabled?: boolean; /** * The aria-label for the component. * @default "Year selection" */ ariaLabel?: string; /** * Props forwarded onto the root element of the component. */ rootProps?: PassThroughProps<"div">; } export declare const YearSelector: import('react').ForwardRefExoticComponent>;