carbon-react
Version:
A library of reusable React components for easily building user interfaces.
16 lines (15 loc) • 1.09 kB
TypeScript
import type { Locale, Matcher } from "react-day-picker";
export declare function isValidLocaleDate(date: string, locale: Locale): boolean;
export declare function parseDate(formatString?: string, valueString?: string): Date | undefined;
export declare function isDateValid(date?: Date): boolean | undefined;
export declare function formatToISO(formatString?: string, valueString?: string): string | null;
export declare function formattedValue(formatString: string, value?: Date): string;
export declare function additionalYears(formatString: string, value: string): string[];
export declare const getSeparator: (value: string) => string;
export declare function findMatchedFormatAndValue(valueString: string, formats: string[]): string[];
export declare function parseISODate(value: string): Date;
export declare function checkISOFormatAndLength(value: string): boolean;
/**
* Returns the disabled array of days specified by props maxDate and minDate
*/
export declare function getDisabledDays(minDate?: string, maxDate?: string): NonNullable<Matcher> | NonNullable<Matcher[]> | undefined;