import { CalendarViewMode, CalendarContext, CalendarOptions, HCalendarProps } from './types'; import { default as dayjs, Dayjs } from 'dayjs/esm'; import { Ref, ComputedRef } from 'vue'; export declare const mergeOptsFun: (objValue: any, ...args: any[]) => any; /** 提供日历上下文的钩子 */ export declare const useProvideCalendarContext: (props: HCalendarProps, selectedDate: Ref) => { options: ComputedRef>; viewMode: Ref; currentMonth: Ref<{ clone: () => dayjs.Dayjs; isValid: () => boolean; year: { (): number; (value: number): dayjs.Dayjs; }; month: { (): number; (value: number): dayjs.Dayjs; }; date: { (): number; (value: number): dayjs.Dayjs; }; day: { (): 0 | 1 | 2 | 3 | 4 | 5 | 6; (value: number): dayjs.Dayjs; }; hour: { (): number; (value: number): dayjs.Dayjs; }; minute: { (): number; (value: number): dayjs.Dayjs; }; second: { (): number; (value: number): dayjs.Dayjs; }; millisecond: { (): number; (value: number): dayjs.Dayjs; }; set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; get: (unit: dayjs.UnitType) => number; add: (value: number, unit?: dayjs.ManipulateType | undefined) => dayjs.Dayjs; subtract: (value: number, unit?: dayjs.ManipulateType | undefined) => dayjs.Dayjs; startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; format: (template?: string | undefined) => string; diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "s" | "D" | "M" | "millisecond" | "second" | "minute" | "hour" | "day" | "month" | "year" | "date" | "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | "dates" | "d" | "y" | "h" | "m" | "ms" | "week" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number; valueOf: () => number; unix: () => number; daysInMonth: () => number; toDate: () => Date; toJSON: () => string; toISOString: () => string; toString: () => string; utcOffset: () => number; isBefore: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: dayjs.OpUnitType | undefined) => boolean; isSame: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: dayjs.OpUnitType | undefined) => boolean; isAfter: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: dayjs.OpUnitType | undefined) => boolean; locale: { (): string; (preset: string | ILocale, object?: Partial | undefined): dayjs.Dayjs; }; }, dayjs.Dayjs | { clone: () => dayjs.Dayjs; isValid: () => boolean; year: { (): number; (value: number): dayjs.Dayjs; }; month: { (): number; (value: number): dayjs.Dayjs; }; date: { (): number; (value: number): dayjs.Dayjs; }; day: { (): 0 | 1 | 2 | 3 | 4 | 5 | 6; (value: number): dayjs.Dayjs; }; hour: { (): number; (value: number): dayjs.Dayjs; }; minute: { (): number; (value: number): dayjs.Dayjs; }; second: { (): number; (value: number): dayjs.Dayjs; }; millisecond: { (): number; (value: number): dayjs.Dayjs; }; set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; get: (unit: dayjs.UnitType) => number; add: (value: number, unit?: dayjs.ManipulateType | undefined) => dayjs.Dayjs; subtract: (value: number, unit?: dayjs.ManipulateType | undefined) => dayjs.Dayjs; startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; format: (template?: string | undefined) => string; diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "s" | "D" | "M" | "millisecond" | "second" | "minute" | "hour" | "day" | "month" | "year" | "date" | "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | "dates" | "d" | "y" | "h" | "m" | "ms" | "week" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number; valueOf: () => number; unix: () => number; daysInMonth: () => number; toDate: () => Date; toJSON: () => string; toISOString: () => string; toString: () => string; utcOffset: () => number; isBefore: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: dayjs.OpUnitType | undefined) => boolean; isSame: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: dayjs.OpUnitType | undefined) => boolean; isAfter: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: dayjs.OpUnitType | undefined) => boolean; locale: { (): string; (preset: string | ILocale, object?: Partial | undefined): dayjs.Dayjs; }; }>; calendarContext: ComputedRef; }; export declare const useCalendarContext: () => { calendarContext: Ref; options: ComputedRef>; };