1// generated by diplomat-tool 2import type { DataProvider } from "./DataProvider" 3import type { DateTimeFormatterLoadError } from "./DateTimeFormatterLoadError" 4import type { DateTimeLength } from "./DateTimeLength" 5import type { IsoDate } from "./IsoDate" 6import type { Locale } from "./Locale" 7import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 8 9 10/** An ICU4X TypedDateFormatter object capable of formatting an [`IsoDate`] and a [`Time`] as a string, 11*using the Gregorian Calendar. 12* 13*See the [Rust documentation for `FixedCalendarDateTimeFormatter`](https://docs.rs/icu/latest/icu/datetime/struct.FixedCalendarDateTimeFormatter.html) for more information. 14* 15*Additional information: [1](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.YMD.html) 16*/ 17 18 19export class GregorianDateFormatter { 20 21 get ffiValue(): pointer; 22 23 static createWithLength(locale: Locale, length: DateTimeLength): GregorianDateFormatter; 24 25 static createWithLengthAndProvider(provider: DataProvider, locale: Locale, length: DateTimeLength): GregorianDateFormatter; 26 27 formatIso(value: IsoDate): string; 28}