import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; import * as i1 from "@danske/sapphire-angular"; /** * Format options for currency amounts. * The style is always 'currency', so only currency-related options are exposed. */ export type CurrencyFormatOptions = Pick; export interface GroupedPart { type: 'sign' | 'number' | 'currency'; value: string; } /** * Component used for displaying financial values. */ export declare class AmountComponent implements OnInit, OnChanges { private locale; /** * When displaying amounts, readability and visual hierarchy are key. Use medium weight for primary emphasis to highlight amounts or regular weight for secondary emphasis. * * @default 'regular' */ emphasis: 'primary' | 'regular'; /** * The variant of the Amount component. `positive` shows a green color, and should be used for amounts greater than zero. * * @default 'neutral' */ variant: 'neutral' | 'positive'; /** * The amount value to be formatted and displayed. * * If displaying the sign is a requirement, ensure the value is a string that starts with '+' or '-'. * Alternatively, you can use the `signDisplay` option in `formatOptions` to control the display of the sign for numeric values. */ value: string | number; /** Currency formatting options */ formatOptions?: CurrencyFormatOptions; /** * The size of the amount text. * @default 'md' */ size: 'lg' | 'md' | 'sm' | 'xs'; formattedValue: string; groupedParts: GroupedPart[]; constructor(locale: string); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private formatAmount; private parseValue; private createFormatter; private groupAmountParts; get textColor(): 'primary' | 'positive'; get isSemibold(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }