import { Dayjs } from 'dayjs'; import { PickerMode, RangeValue } from 'bonree-picker/lib/interface'; import { PickerLocale } from './generatePicker'; export declare const MAX_DURATION = 86400000000; export interface _SpecialDate { enable?: boolean; name?: string; dates?: string[]; times?: string[]; } export declare type SpecialDate = _SpecialDate | null; export declare function getPlaceholder(picker: PickerMode | undefined, locale: PickerLocale, customizePlaceholder?: string): string; export declare function getRangePlaceholder(picker: PickerMode | undefined, locale: PickerLocale, customizePlaceholder?: [string, string]): [string, string] | undefined; export declare enum GlobalPickerType { shortcut = 1, custom = 2, recently = 3, special = 4 } export declare function getTargetFromEvent(e: Event): HTMLElement; export declare function elementsContains(elements: (HTMLElement | undefined | null)[], target: HTMLElement): boolean; declare type ClickEventHandler = (event: MouseEvent) => void; export declare function addGlobalMouseDownEvent(callback: ClickEventHandler): () => void; export declare const generateRefreshOptions: (locale?: Record | undefined) => { label: any; value: number; }[]; export declare const isAbsoluteTime: (value: string) => boolean; export declare const isRelativeTime: (value: string) => boolean; export declare const isSpecialTime: (value: string) => boolean; export declare const multiSpaceToOne: (value: string) => string; export declare function valueToShortcut(value: string): { type: GlobalPickerType; label: string; value: string; }; export declare function computedDuration(dates: RangeValue): Record | undefined; export declare function durationText(dates: RangeValue, maxDuration: number, locale?: Record): { isInvalid: boolean; isGreater: boolean; isEqual: boolean; formatString: any; }; export declare function datesToValue(dates: RangeValue): string; export declare const parseShortcutValue: (value?: string | undefined) => RangeValue; export interface ShortcutOption { type?: GlobalPickerType; label: string; value: string; } export declare const computeShortcutOptions: (locale: Record) => ShortcutOption[]; export declare const parseSpecialTime: (value: string, specialDate: SpecialDate) => RangeValue; export declare const filterShortcutsByMaxDuration: (shortcuts: ShortcutOption[], maxDuration: number, specialDate?: SpecialDate | undefined) => ShortcutOption[]; export declare const computedSpecialList: (locale: Record, specialDate: SpecialDate, maxDuration?: number | undefined) => ShortcutOption[]; export declare const isRelatveOpt: (opt: ShortcutOption) => boolean; export declare const isSpecialOpt: (opt: ShortcutOption) => boolean; export declare const isRecentOpt: (opt: ShortcutOption) => boolean; export declare function isInSpecial(currentDate: Dayjs, specialDate?: SpecialDate): boolean; export {};