/** * CurrencyDisplay - Formats and displays monetary values * * Displays formatted currency with configurable unit. * Use `unit="cents"` (default) when amount is in the currency's minor units, * or `unit="dollars"` when it is already in major units. * Accepts ISO 4217 currency codes, normalized by trimming whitespace and * uppercasing before locale formatting. Unsupported codes render an accessible * inline error instead of throwing during a collection render. */ /** Props for CurrencyDisplay component */ export interface Props { /** Amount value */ amount: number; /** ISO 4217 currency code. Whitespace is trimmed and letters are uppercased. */ currency?: string; /** Whether amount is a safe integer of ISO minor units or a major-unit number */ unit?: 'cents' | 'dollars'; /** Show +/- sign for non-zero values */ showSign?: boolean; /** Display size */ size?: 'sm' | 'md' | 'lg'; /** Highlight negative values in red */ highlightNegative?: boolean; /** Highlight positive values in green */ highlightPositive?: boolean; /** Optional CSS class */ class?: string; } declare const CurrencyDisplay: import("svelte").Component; type CurrencyDisplay = ReturnType; export default CurrencyDisplay; //# sourceMappingURL=CurrencyDisplay.svelte.d.ts.map