@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
23 lines • 943 B
TypeScript
import type { Dispatch, MutableRefObject, SetStateAction } from "react";
import type { BigNumber } from "bignumber.js";
import type { Unit } from "@ledgerhq/types-cryptoassets";
type SyncAmountInputsParams = {
cryptoAmount: BigNumber;
fiatAmount: BigNumber;
transactionUseAllAmount: boolean;
inputMode: "fiat" | "crypto";
cryptoInputValue: string;
fiatInputValue: string;
locale: string;
accountUnit: Unit;
fiatUnit: Unit;
lastTransactionAmountRef: MutableRefObject<BigNumber | null>;
lastFiatAmountRef: MutableRefObject<BigNumber | null>;
lastUseAllAmountRef: MutableRefObject<boolean>;
lastUserInputTimeRef: MutableRefObject<number>;
setCryptoInputValue: Dispatch<SetStateAction<string>>;
setFiatInputValue: Dispatch<SetStateAction<string>>;
};
export declare function syncAmountInputs(params: SyncAmountInputsParams): void;
export {};
//# sourceMappingURL=amountInputSync.d.ts.map