import { isoly } from "isoly"; import { Account } from "../Account"; import { Preset } from "../Card/Preset"; import { Rail } from "../Rail"; import { Amount } from "./Amount"; import { Exchange } from "./Exchange"; export interface Creatable { counterpart: string | Rail.Address; currency: isoly.Currency; amount: number; description: string; exchange?: Exchange; } export declare namespace Creatable { type Resolved = (Creatable & { counterpart: Rail.Address; }) | CardTransaction; const type: import("isly/dist/cjs/object").IslyObject; interface CardTransaction extends Creatable { account: Pick; accountId: string; counterpart: Rail.Address.Card.Counterpart; reference: { reference: string; }; approvalCode?: string; } namespace CardTransaction { const type: import("isly/dist/cjs/object").IslyObject; function charge(creatable: CardTransaction, preset: Preset, charges?: Account.Charge): Amount.Charge; } }