1 | import { Locale } from "../types/locale";
|
2 | import { ParsedOptions } from "../types/options";
|
3 | export declare type token = "D" | "F" | "G" | "H" | "J" | "K" | "M" | "S" | "U" | "W" | "Y" | "Z" | "d" | "h" | "i" | "j" | "l" | "m" | "n" | "s" | "u" | "w" | "y";
|
4 | export declare const monthToStr: (monthNumber: number, shorthand: boolean, locale: Locale) => string;
|
5 | export declare type RevFormatFn = (date: Date, data: string, locale: Locale) => Date | void | undefined;
|
6 | export declare type RevFormat = Record<string, RevFormatFn>;
|
7 | export declare const revFormat: RevFormat;
|
8 | export declare type TokenRegex = {
|
9 | [k in token]: string;
|
10 | };
|
11 | export declare const tokenRegex: TokenRegex;
|
12 | export declare type Formats = Record<token, (date: Date, locale: Locale, options: ParsedOptions) => string | number>;
|
13 | export declare const formats: Formats;
|