@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
16 lines • 689 B
TypeScript
import type { Account, AccountLike } from "@ledgerhq/types-live";
import type { SendFlowAccountState } from "../types";
type UseSendFlowAccountParams = Readonly<{
initialAccount?: AccountLike;
initialParentAccount?: Account | null;
}>;
type UseSendFlowAccountResult = Readonly<{
state: SendFlowAccountState;
setAccount: (account: AccountLike, parentAccount?: Account | null) => void;
clearAccount: () => void;
hasAccount: boolean;
currencyId: string | null;
}>;
export declare function useSendFlowAccount({ initialAccount, initialParentAccount, }?: UseSendFlowAccountParams): UseSendFlowAccountResult;
export {};
//# sourceMappingURL=useSendFlowAccount.d.ts.map