UNPKG

react-semantic-ui-datepickers

Version:
22 lines (21 loc) 1.33 kB
import { DateObj } from 'dayzed'; import { Object, FnsFormatOptions } from './types'; export declare const keys: { enter: number; escape: number; space: number; }; export declare const isSelectable: (date: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => boolean; export declare const getToday: (minDate?: Date | undefined, maxDate?: Date | undefined) => DateObj; export declare const formatDate: (date: Date | null, dateFormat: string, formatOptions?: FnsFormatOptions) => string | undefined; export declare const omit: (keysToOmit: string[], obj: Object) => { [x: string]: any; }; export declare const pick: (keysToPick: string[], obj: Object) => Object; export declare const moveElementsByN: <T>(n: number, arr: T[]) => T[]; export declare const formatSelectedDate: (selectedDate: Date | Date[] | null | undefined, dateFormat: string, formatOptions?: FnsFormatOptions) => string | undefined; export declare const parseFormatString: (formatString: string) => string; export declare const parseOnBlur: (typedValue: string, formatString: string) => Date; export declare const parseRangeOnBlur: (typedValue: string, formatString: string) => Date[]; export declare const onlyNumbers: (value?: string) => string; export declare function getShortDate(date?: Date): string | undefined;