1 | import { Options } from "./options";
|
2 | import { Locale } from "./i18n/locale";
|
3 | import { LocaleLoader } from "./i18n/localeLoader";
|
4 | export declare class ExpressionDescriptor {
|
5 | static locales: {
|
6 | [name: string]: Locale;
|
7 | };
|
8 | static defaultLocale: string;
|
9 | static specialCharacters: string[];
|
10 | expression: string;
|
11 | expressionParts: string[];
|
12 | options: Options;
|
13 | i18n: Locale;
|
14 | static toString(expression: string, { throwExceptionOnParseError, verbose, dayOfWeekStartIndexZero, monthStartIndexZero, use24HourTimeFormat, locale, tzOffset }?: Options): string;
|
15 | static initialize(localesLoader: LocaleLoader, defaultLocale?: string): void;
|
16 | constructor(expression: string, options: Options);
|
17 | protected getFullDescription(): string;
|
18 | protected getTimeOfDayDescription(): string;
|
19 | protected getSecondsDescription(): string;
|
20 | protected getMinutesDescription(): string;
|
21 | protected getHoursDescription(): string;
|
22 | protected getDayOfWeekDescription(): string;
|
23 | protected getMonthDescription(): string;
|
24 | protected getDayOfMonthDescription(): string | null;
|
25 | protected getYearDescription(): string;
|
26 | protected getSegmentDescription(expression: string, allDescription: string, getSingleItemDescription: (t: string, form?: number) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string): string | null;
|
27 | protected generateRangeSegmentDescription(rangeExpression: string, getRangeDescriptionFormat: (t: string) => string, getSingleItemDescription: (t: string, form?: number) => string): string;
|
28 | protected formatTime(hourExpression: string, minuteExpression: string, secondExpression: string): string;
|
29 | protected transformVerbosity(description: string, useVerboseFormat: boolean): string;
|
30 | private getPeriod;
|
31 | }
|