import { PureComponent } from 'react'; import { DatePickers } from './common/types'; export interface IYearPickerProps extends DatePickers.ICommonProps { needConfirm?: boolean; isFooterVisible?: boolean; onBeforeClear?: () => boolean; } export declare class YearPicker extends PureComponent { static defaultProps: { placeholder: string; format: string; needConfirm: boolean; prefix: string; confirmText: string; popPosition: string; openPanel: boolean; onChange: (...args: any[]) => void; isFooterVisible: boolean; canClear: boolean; autoComplete: string; }; static getDerivedStateFromProps(props: IYearPickerProps, state: any): { value: string; actived: any; selected: any; openPanel: boolean; showPlaceholder: any; prevProps: IYearPickerProps; }; picker: HTMLDivElement | null; constructor(props: IYearPickerProps); onChangeYear: (val: any) => void; onSelectYear: (val: any) => void; onClearInput: (evt: any) => void; onConfirm: () => void; isDisabled: (val: any) => boolean; renderPicker(): any; togglePicker: () => void; render(): JSX.Element; } export default YearPicker;