+\r
+ // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:\r
+ type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";\r
+ type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";\r
+ type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;\r
+\r
+ interface NumberFormatPart {\r
+ type: NumberFormatPartTypes;\r
+ value: string;\r
+ }\r
+\r
+ interface NumberFormat {\r
+ formatToParts(number?: number | bigint): NumberFormatPart[];\r
+ }\r