UNPKG

768 BTypeScriptView Raw
1import { OpUnitType } from "dayjs";
2import { TimeUnits } from "../../utils/timeunits";
3export declare const WEEKDAY_DICTIONARY: {
4 [word: string]: number;
5};
6export declare const MONTH_DICTIONARY: {
7 [word: string]: number;
8};
9export declare const INTEGER_WORD_DICTIONARY: {
10 [word: string]: number;
11};
12export declare const TIME_UNIT_DICTIONARY: {
13 [word: string]: OpUnitType;
14};
15export declare const NUMBER_PATTERN: string;
16export declare function parseNumberPattern(match: string): number;
17export declare const YEAR_PATTERN = "(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*C(?:hr)?\\.?)?)";
18export declare function parseYear(match: string): number;
19export declare const TIME_UNITS_PATTERN: string;
20export declare function parseTimeUnits(timeunitText: any): TimeUnits;