1declare namespace Intl { 2 3 interface DateTimeFormatPartTypesRegistry { 4 day: any 5 dayPeriod: any 6 era: any 7 hour: any 8 literal: any 9 minute: any 10 month: any 11 second: any 12 timeZoneName: any 13 weekday: any 14 year: any 15 } 16 17 type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry; 18 19 interface DateTimeFormatPart { 20 type: DateTimeFormatPartTypes; 21 value: string; 22 } 23 24 interface DateTimeFormat { 25 formatToParts(date?: Date | number): DateTimeFormatPart[]; 26 } 27} 28