import { Size } from '../../types.js'; import { Dayjs } from 'dayjs'; import { Dispatch, ReactNode, SetStateAction } from 'react'; import { FlexProps } from '../flex/index.js'; import { ButtonProps } from '../button/index.js'; export type ViewLevel = 'date' | 'month' | 'year'; type SharedProps = { min?: Dayjs; max?: Dayjs; dateButtonProps?: ButtonProps | ((date: Dayjs) => ButtonProps); disabledDates?: (date: Dayjs) => boolean; /** 是否显示`回今天`按钮,默认为`true` */ showToday?: boolean; todayButtonText?: ReactNode; todayButtonProps?: ButtonProps; /** @private */ _defaultNull?: boolean; }; export interface CalendarProps extends SharedProps, Omit { /** 视图等级,默认为`date` */ viewLevel?: ViewLevel; size?: Size; defaultValue?: Dayjs | null; value?: Dayjs | null; onChange?(value: Dayjs | null): void; } export interface PanelProps extends SharedProps { value: Dayjs | null; setValue: Dispatch>; innerD: Dayjs; setInnerD: Dispatch>; setViewType: Dispatch>; onSelected(newValue: Dayjs): void; } export declare const Calendar: ({ viewLevel, showToday, dateButtonProps, todayButtonText, todayButtonProps, size, defaultValue, min, max, disabledDates, value, onChange, _defaultNull, ...props }: CalendarProps) => import("@emotion/react/jsx-runtime").JSX.Element; export {};