import './index.scss'; import { type Dayjs } from 'dayjs'; export interface TimeOptions { container: HTMLElement; current?: Date | Dayjs; onChange?: (date?: Dayjs) => void; onOk?: (date?: Dayjs) => void; showHeader?: boolean; disabledDate?: (date?: Dayjs) => boolean; } declare class Time { options: TimeOptions; _current: Dayjs | null; _times: string[]; constructor(options: TimeOptions); /** * @description set current time * @param year */ setCurrent(date?: string | Date | Dayjs): void; _onCell(): void; _onOk(): void; _activeItem(): void; renderLayoutString(time?: Dayjs): string; render(time: Dayjs): void; _renderTime(): string; } export default Time;