intl.d.ts
821 Bytes
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export declare enum NumberFormatStyle {
Decimal = 0,
Percent = 1,
Currency = 2,
}
export declare class NumberFormatter {
static format(num: number, locale: string, style: NumberFormatStyle, {minimumIntegerDigits, minimumFractionDigits, maximumFractionDigits, currency, currencyAsSymbol}?: {
minimumIntegerDigits?: number;
minimumFractionDigits?: number;
maximumFractionDigits?: number;
currency?: string;
currencyAsSymbol?: boolean;
}): string;
}
export declare class DateFormatter {
static format(date: Date, locale: string, pattern: string): string;
}