declare const REIWA = "\u4EE4\u548C"; declare const HEISEI = "\u5E73\u6210"; declare const SHOWA = "\u662D\u548C"; declare const TAISHO = "\u5927\u6B63"; declare const MEIJI = "\u660E\u6CBB"; type Geongo = typeof REIWA | typeof HEISEI | typeof SHOWA | typeof TAISHO | typeof MEIJI; declare const WAREKI_START_YEARS: { readonly r: 2019; readonly R: 2019; readonly 令和: 2019; readonly h: 1989; readonly H: 1989; readonly 平成: 1989; readonly s: 1926; readonly S: 1926; readonly 昭和: 1926; readonly t: 1912; readonly T: 1912; readonly 大正: 1912; readonly m: 1868; readonly M: 1868; readonly 明治: 1868; }; declare const warekiReg: { dateString: RegExp; wareki: RegExp; eraDetection: RegExp; }; type WarekiResult = { isValid: boolean; result: T; formatted: string; }; declare function selectGengo(year: number, month: number, date: number): Geongo; declare function fullWidthToHalfWidth(dateString: string): string; declare function dateToWareki(d: string | Date): WarekiResult; export declare function warekiToDate(wareki: string): WarekiResult; /** * Check if the input string appears to be a Japanese era format * This is used for initial screening before attempting to parse * * @param inputString - The input string to check * * @returns true if the string appears to be a Japanese era format */ export declare function isJapaneseEraFormat(inputString: string): boolean; /** * Converts a Western calendar year to an era label string for display in YearSelector. * * Uses December 31 to resolve era transition years to the later era: * 2019 → 令和元年 (ja) / Reiwa 1 (en) * 1989 → 平成元年 (ja) / Heisei 1 (en) * 1926 → 昭和元年 (ja) / Showa 1 (en) * 1912 → 大正元年 (ja) / Taisho 1 (en) * Years before MEIJI_START_YEAR (< 1868): "1867年" (ja) / "1867" (en) * First year of each era: "元年" suffix in Japanese (e.g., 令和元年, not 令和1年) * * @param year - Western calendar year (e.g., 2025) * * @param locale - 'ja' for Japanese labels, 'en' for romanized labels * * @returns Era label string (e.g., "令和7年", "令和元年", "Reiwa 7", "1867年", "1867") */ export declare function yearToEraLabel(year: number, locale: 'ja' | 'en'): string; /** * Formats a Date to a short English era string for display in the DatePicker trigger input. * Format: "{EraName} {eraYear}/{MM}/{DD}" (e.g., "Reiwa 7/03/06"). * For pre-Meiji dates (year < 1868): falls back to the Gregorian year (e.g., "1867/03/06"). * * @param date - The date to format * * @returns Short English era string (e.g., "Reiwa 7/03/06") */ export declare function dateToEnglishEraShort(date: Date): string; /** * Formats a Date to a short English era string for display in the MonthPicker trigger input. * Format: "{EraName} {eraYear}/{MM}" (e.g., "Reiwa 7/03"). * For pre-Meiji dates (year < 1868): falls back to the Gregorian year (e.g., "1867/03"). * * @param date - The date to format * * @returns Short English era month string (e.g., "Reiwa 7/03") */ export declare function dateToEnglishEraMonthShort(date: Date): string; /** * Formats a Date to a Japanese-era string with day precision (e.g., "令和7年3月6日"). * Uses the platform's built-in `ja-JP-u-ca-japanese` calendar. * * @param date - The date to format * * @returns Japanese era string with day (e.g., "令和7年3月6日") */ export declare function dateToJapaneseEra(date: Date): string; /** * Formats a Date to a Japanese-era string with month precision (e.g., "令和7年3月"). * Uses the platform's built-in `ja-JP-u-ca-japanese` calendar. * * @param date - The date to format * * @returns Japanese era month string (e.g., "令和7年3月") */ export declare function dateToJapaneseEraMonth(date: Date): string; export { warekiReg, dateToWareki, fullWidthToHalfWidth, selectGengo, WAREKI_START_YEARS }; export type { WarekiResult };