import { BoxProps, ElementProps, Factory, MantineComponentStaticProperties, StylesApiProps } from '@mantine/core'; import { DatePickerType, DateStringValue, PickerBaseProps } from '../../types'; import { CalendarBaseProps } from '../Calendar'; import { DecadeLevelBaseSettings } from '../DecadeLevel'; import { DecadeLevelGroupStylesNames } from '../DecadeLevelGroup'; export type YearPickerStylesNames = DecadeLevelGroupStylesNames; export interface YearPickerBaseProps extends PickerBaseProps, DecadeLevelBaseSettings, Omit { } export interface YearPickerProps extends BoxProps, YearPickerBaseProps, StylesApiProps, ElementProps<'div', 'onChange' | 'value' | 'defaultValue'> { /** Called when year is selected */ onYearSelect?: (date: DateStringValue) => void; } export type YearPickerFactory = Factory<{ props: YearPickerProps; ref: HTMLDivElement; stylesNames: YearPickerStylesNames; }>; type YearPickerComponent = ((props: YearPickerProps & { ref?: React.ForwardedRef; }) => React.JSX.Element) & { displayName?: string; } & MantineComponentStaticProperties; export declare const YearPicker: YearPickerComponent; export {};