UNPKG

@atomiqlabs/sdk

Version:

atomiq labs SDK for cross-chain swaps between smart chains and bitcoin

12 lines (11 loc) 584 B
import { Token } from "@atomiqlabs/sdk-lib"; export declare function toHumanReadableString(amount: bigint, currencySpec: Token): string; export declare function fromHumanReadableString(amount: string, currencySpec: Token): bigint; /** * Returns an abort signal that aborts after a specified timeout in milliseconds * * @param timeout Milliseconds to wait * @param abortReason Abort with this abort reason * @param abortSignal Abort signal to extend */ export declare function timeoutSignal(timeout: number, abortReason?: any, abortSignal?: AbortSignal): AbortSignal;