import type { ISO4217Code } from "./mod.js"; import { MoneyPrimitive } from "./mod.js"; export interface MoneyInputProps { /** Current value in minor or major units (see unit prop) */ amount?: number | null | undefined; /** * MoneyPrimitive instance. When provided, initial amount and currency * are derived from the primitive. Read-only input — output still fires oninput(). */ money?: MoneyPrimitive; /** * Whether the amount is in 'major' (e.g., pesos) or 'minor' (e.g., centavos) units. * @deprecated Use `money` prop with MoneyPrimitive instead. * Defaults to 'minor' for backward compatibility. */ unit?: "major" | "minor"; /** Override currency code (defaults to CurrencyStore.current) */ currency?: ISO4217Code | string; /** The currency the amount is stored in (e.g. MXN) */ storageCurrency?: ISO4217Code | string; /** Minimum value in same units as amount (in storageCurrency) */ min?: number; /** Maximum value in same units as amount (in storageCurrency) */ max?: number; /** Placeholder text */ placeholder?: string; /** Fired when the value changes (unit matches the unit prop, in storageCurrency) */ oninput?: (val: number) => void; /** Input disabled state */ disabled?: boolean; } declare const MoneyInput: import("svelte").Component< MoneyInputProps, {}, "amount" >; type MoneyInput = ReturnType; export default MoneyInput;