import { Locale } from 'date-fns'; import { Config, DPElements, IDefaultSelect, IMarker, MaybeElementRef, ModelValue, OverlayGridItem } from '../interfaces'; export declare const getArrayInArray: (list: T[], increment?: number) => T[][]; /** * Generate week day names based on formatLocale or locale and in order specified in week start */ export declare const getDayNames: (formatLocale: Locale | null, locale: string, weekStart: number) => string[]; /** * Generate array of years for selection display */ export declare const getYears: (yearRange: number[] | string[], locale: string, reverse?: boolean) => IDefaultSelect[]; /** * Generate month names based on formatLocale or locale for selection display */ export declare const getMonths: (formatLocale: Locale | null, locale: string, monthFormat: "long" | "short") => IDefaultSelect[]; /** * Since internally watched values are in 24h mode, this will get am-pm value from set hour */ export declare const hoursToAmPmHours: (index: number) => number; export declare const unrefElement: (elRef: MaybeElementRef) => HTMLElement | null; export declare const getDefaultMarker: (marker: IMarker) => IMarker; export declare const isModelAuto: (modelValue: ModelValue) => boolean; export declare const errors: { prop: (name: string) => string; dateArr: (name: string) => string; }; export declare const convertType: (val: any) => T; export declare const getNumVal: (num?: string | number | null) => number | null; export declare const isNumNullish: (num?: number | null) => num is null; export declare const findFocusableEl: (container: HTMLElement | null) => HTMLElement | undefined; /** * Create array for the SelectionOverlay grouped by 3 */ export declare const getGroupedList: (items: IDefaultSelect[]) => IDefaultSelect[][]; /** * Check if number is between min and max values */ export declare const checkMinMaxValue: (value: number | string, min?: number, max?: number) => boolean; /** * Maps data for the SelectionOverlay */ export declare const groupListAndMap: (list: IDefaultSelect[], cb: (item: IDefaultSelect) => { active: boolean; disabled: boolean; highlighted?: boolean; isBetween?: boolean; }) => OverlayGridItem[][]; export declare const checkStopPropagation: (ev: Event | undefined, config: Config, immediate?: boolean) => void; export declare function findNextFocusableElement(startingElement: HTMLElement, reverse: boolean): HTMLElement | undefined; export declare const getElWithin: (wrapper: HTMLElement | null, attribute: DPElements) => HTMLElement | undefined | null; export declare const formatNumber: (num: number, locale: string) => string; export declare const getMapKey: (date: Date | string | number) => string; export declare const shouldMap: (arr: any) => arr is Date[] | string[] | boolean; export declare const getMapDate: (date: Date, map: Map) => T | undefined; export declare const matchDate: (date: Date, mapOrFn: Map | ((date: Date) => boolean) | null) => boolean;