import { isoly } from "isoly"; import { fx } from "../../fx"; import type { Rule } from "../../Rule"; import { Exchange } from "../Exchange"; import { Charge as AmountCharge } from "./Charge"; export interface Amount { original: number; charge: number; charges?: Amount.Charge; total: number; exchange?: Exchange; } export declare namespace Amount { export import Charge = AmountCharge; const type: import("isly/dist/cjs/object").IslyObject; function fromState(state: Rule.State, charges?: Charge, quote?: fx.Quote): Amount; function change(currency: isoly.Currency, amount: Amount, change: number, type: Exclude): Amount; }