import { CryptoCurrency } from "@ledgerhq/types-cryptoassets"; import { Account, AccountLike } from "@ledgerhq/types-live"; import BigNumber from "bignumber.js"; export type UseCantonAcceptOrRejectOfferOptions = { currency: CryptoCurrency; account: Account; partyId: string; }; export type TransferInstructionParams = { contractId: string; deviceId: string; reason?: string; }; export type TransferInstructionType = "accept-transfer-instruction" | "reject-transfer-instruction" | "withdraw-transfer-instruction"; export declare function useCantonAcceptOrRejectOffer({ currency, account, partyId, }: UseCantonAcceptOrRejectOfferOptions): ({ contractId, deviceId, reason }: TransferInstructionParams, type: TransferInstructionType) => Promise; export declare const getRemainingTime: (diff: number) => string; export declare const useTimeRemaining: (expiresAtMicros?: number, isExpired?: boolean) => string; /** * Hook to calculate withdrawable balance from expired outgoing offers. * Withdrawable balance is the sum of amounts from offers the user sent that have expired. */ export declare const useWithdrawableBalance: (account: AccountLike, accounts: Account[]) => BigNumber; //# sourceMappingURL=react.d.ts.map