import * as React from 'react'; interface YearProps { /**是否可编辑 */ editable?: boolean; /**输入框内容 */ value?: number | string; /**输入框内容变化时的回调 */ onChange?: Function; /**格式 */ format?: string; /**值的数据类型,timestamp为时间戳,string为格式化字符串 */ valueType?: 'timestamp' | 'string'; } interface YearState {} declare class Year extends React.Component { state: YearState; componentDidMount(): void; componentDidUpdate(prevProps: YearProps): void; componentWillUnmount(): void; render: () => React.ReactElement; } export default Year;