1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
export declare enum NumberFormatStyle {
|
9
|
Decimal = 0,
|
10
|
Percent = 1,
|
11
|
Currency = 2,
|
12
|
}
|
13
|
export declare class NumberFormatter {
|
14
|
static format(num: number, locale: string, style: NumberFormatStyle, opts?: {
|
15
|
minimumIntegerDigits?: number;
|
16
|
minimumFractionDigits?: number;
|
17
|
maximumFractionDigits?: number;
|
18
|
currency?: string | null;
|
19
|
currencyAsSymbol?: boolean;
|
20
|
}): string;
|
21
|
}
|
22
|
export declare class DateFormatter {
|
23
|
static format(date: Date, locale: string, pattern: string): string;
|
24
|
}
|