import { ExtractResult, Match } from "@microsoft/recognizers-text"; import { BaseDatePeriodExtractor, BaseDatePeriodParser } from "../baseDatePeriod"; import { DateTimeResolutionResult } from "../utilities"; import { DateTimeParseResult } from "../parsers"; export declare class ChineseDatePeriodExtractor extends BaseDatePeriodExtractor { constructor(dmyDateFormat: boolean); extract(source: string, refDate: Date): ExtractResult[]; private matchNumberWithUnit; } export declare class ChineseDatePeriodParser extends BaseDatePeriodParser { private readonly integerExtractor; private readonly numberParser; private readonly yearInChineseRegex; private readonly numberCombinedWithUnitRegex; private readonly unitRegex; private readonly yearAndMonthRegex; private readonly pureNumberYearAndMonthRegex; private readonly yearToYearRegex; private readonly YearToYearSuffixRequired; private readonly chineseYearRegex; private readonly seasonWithYearRegex; readonly dynastyStartYear: string; readonly dynastyYearRegex: RegExp; readonly dynastyYearMap: ReadonlyMap; readonly decadeRegex: RegExp; readonly thisRegex: RegExp; readonly nextRegex: RegExp; readonly lastRegex: RegExp; constructor(dmyDateFormat: boolean); parse(extractorResult: ExtractResult, referenceDate?: Date): DateTimeParseResult | null; protected getMatchSimpleCase(source: string): Match; protected parseSimpleCases(source: string, referenceDate: Date): DateTimeResolutionResult; protected parseYear(source: string, referenceDate: Date): DateTimeResolutionResult; private convertYear; protected getWeekOfMonth(cardinal: number, month: number, year: number, referenceDate: Date, noYear: boolean): DateTimeResolutionResult; protected computeDate(cardinal: number, weekday: number, month: number, year: number): Date; protected parseSeason(source: string, referenceDate: Date): DateTimeResolutionResult; protected parseQuarter(source: string, referenceDate: Date): DateTimeResolutionResult; protected parseNumberWithUnit(source: string, referenceDate: Date): DateTimeResolutionResult; protected parseDuration(source: string, referenceDate: Date): DateTimeResolutionResult; protected parseDecade(source: string, referenceDate: Date): DateTimeResolutionResult; private parseCommonDurationWithUnit; private convertChineseToNumber; private parseYearAndMonth; private parseYearToYear; private sanitizeYear; }