@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
15 lines • 819 B
TypeScript
import type { Account } from "@ledgerhq/types-live";
import { SwapDataType, SwapSelectorStateType, SwapTransactionType } from "../types";
export declare const useReverseAccounts: ({ accounts, toAccount, fromAccount, fromParentAccount, fromCurrency, setFromAccount, setToAccount, }: {
accounts: Account[] | undefined;
toAccount: SwapSelectorStateType["account"];
fromAccount: SwapSelectorStateType["account"];
fromParentAccount: SwapSelectorStateType["parentAccount"];
fromCurrency: SwapSelectorStateType["currency"];
setFromAccount: SwapTransactionType["setFromAccount"];
setToAccount: SwapTransactionType["setToAccount"];
}) => {
isSwapReversable: SwapDataType["isSwapReversable"];
reverseSwap: SwapTransactionType["reverseSwap"];
};
//# sourceMappingURL=useReverseAccounts.d.ts.map