UNPKG

1.07 kBTypeScriptView Raw
1import { Locale } from '../locale/locale.class';
2export declare const match1: RegExp;
3export declare const match2: RegExp;
4export declare const match3: RegExp;
5export declare const match4: RegExp;
6export declare const match6: RegExp;
7export declare const match1to2: RegExp;
8export declare const match3to4: RegExp;
9export declare const match5to6: RegExp;
10export declare const match1to3: RegExp;
11export declare const match1to4: RegExp;
12export declare const match1to6: RegExp;
13export declare const matchUnsigned: RegExp;
14export declare const matchSigned: RegExp;
15export declare const matchOffset: RegExp;
16export declare const matchShortOffset: RegExp;
17export declare const matchTimestamp: RegExp;
18export declare const matchWord: RegExp;
19export declare type RegExpTokenFn = (isStrict: boolean, locale: Locale) => RegExp;
20export declare function addRegexToken(token: string, regex: RegExp | RegExpTokenFn, strictRegex?: RegExp): void;
21export declare function getParseRegexForToken(token: string, locale: Locale): RegExp;
22export declare function regexEscape(str: string): string;