import { ILocale, TAvailableLocale } from '../locale'; import { IRawDate, TDateLocale } from '../utils'; import { ComputedRef, PropType } from 'vue'; export interface IDatetimeProps { modelValue: string | TDatetimeValueRange | Array; mask: string; locale?: ILocale | TAvailableLocale; readonly?: boolean; disabled?: boolean; } export interface IUseDatetime { editable: ComputedRef; tabindex: ComputedRef; getCurrentDate: (dateOnly?: boolean) => IRawDate; getShortDate: (date: IRawDate) => Partial; getLocale: () => TDateLocale; getMask: () => string; decodeString: (date: string) => IRawDate; } export type TDatetimeValueRange = { from: string | IRawDate; to: string | IRawDate; target?: string | IRawDate; }; export declare const makeDatetimeProps: (defaults?: Defaults | undefined) => import('../utils').AppendDefault<{ /** * Значение модели */ modelValue: { type: PropType>; default: null; }; /** * Формат даты/времени */ mask: { type: PropType; default: string; }; }, Defaults>; export declare function useDatetime(props: IDatetimeProps): IUseDatetime; export declare function getDayHash(date: IRawDate): string;