import { type Dayjs } from 'dayjs'; import { type YearOptions } from './year'; import { type MonthOptions } from './month'; import { type CalendarOptions } from './calendar'; export type Picker = 'year' | 'month' | 'date' | 'time'; export interface DatePickerOptions extends Omit, Omit, Omit { getPopupContainer?: () => HTMLElement; position?: 'tl' | 'top' | 'tr' | 'bl' | 'bottom' | 'br'; open?: boolean; picker?: Picker; current?: Date | Dayjs; disableDate?: (date?: Dayjs) => boolean; } declare class DatePicker { $container: HTMLElement; $datePicker: HTMLElement; options: Required; private _open; private _calendarCls; private _yearCls; private _monthCls; private _current; private _renderCurrent; private _activePicker?; constructor(options: Partial); setCurrent(date: Date | Dayjs): void; show(): void; hide(): void; _onHeaderYearMonthBtn(): void; private _onContainer; private _switchShowHide; private _createCreateContainer; private _createYearMonthDateTime; private _switchPicker; /** * @description container position * @returns */ private _position; _onDocumentClick(): void; } export default DatePicker;