/// import moment from 'moment'; import React from 'react'; import { LocaleProps } from 'amis-core'; import { PickerOption } from '../PickerColumn'; import { DateType } from './Calendar'; export interface OtherProps { inputFormat?: string; hideHeader?: boolean; } export interface CustomMonthsViewProps extends LocaleProps { inputFormat?: string; hideHeader?: boolean; viewDate: moment.Moment; selectedDate: moment.Moment; subtractTime: (amount: number, type: string, toSelected?: moment.Moment) => () => void; addTime: (amount: number, type: string, toSelected?: moment.Moment) => () => void; showView: (view: string) => () => void; minDate?: moment.Moment; maxDate?: moment.Moment; onChange?: () => void; onClose?: () => void; onClick?: () => void; updateOn?: string; setDate?: (date: string) => void; updateSelectedMonth?: () => void; updateSelectedDate: (event: React.MouseEvent, close?: boolean) => void; renderMonth?: (props: any, month: number, year: number, date: any) => React.ReactNode; onConfirm?: (value: number[], types?: string[]) => void; getColumns: (types: DateType[], dateBoundary: void) => any; isValidDate?(value: any): boolean; timeCell: (value: number, type: DateType) => string; getDateBoundary: (currentDate: moment.Moment) => any; mobileUI: boolean; } export declare class CustomMonthsView extends React.Component { maxDateObject: { year: number; month: number; day?: number; }; minDateObject: { year: number; month: number; day?: number; }; state: { columns: { options: PickerOption[]; }[]; pickerValue: number[]; }; constructor(props: any); renderMonths(): React.DetailedReactHTMLElement, HTMLElement>[]; updateSelectedMonth(event: any): void; getColumnsWithUnit(columns: { options: PickerOption[]; }[]): { options: PickerOption[]; }[]; renderMonth: (props: any, month: number, year: number, date: moment.Moment) => React.JSX.Element; onConfirm: (value: number[], types?: string[]) => void; onPickerChange: (value: number[], index: number) => void; alwaysValidDate(): boolean; renderPicker: () => React.JSX.Element; render(): React.JSX.Element; } declare const _default: { new (props: Omit & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: any; }; export default _default;