UNPKG

@coin-voyage/paykit

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

16 lines (15 loc) 1.29 kB
import React from "react"; declare const truncateEthAddress: (address?: string, separator?: string) => string; declare const truncateENSAddress: (ensName: string, maxLength: number) => string; declare function fromReadableAmount(amount: number | string, decimals: number): bigint; declare function toReadableAmount(amount: number | string | bigint, decimals: number): string; declare const nFormatter: (num: number, digits?: number) => string; type ReactChildArray = ReturnType<typeof React.Children.toArray>; declare function flattenChildren(children: React.ReactNode): ReactChildArray; export declare const isWalletConnectConnector: (connectorId?: string) => connectorId is "walletConnect"; export declare const isMetaMaskConnector: (connectorId?: string) => connectorId is "metaMaskSDK"; export declare const isCoinbaseWalletConnector: (connectorId?: string) => connectorId is "coinbaseWalletSDK"; export declare const isLedgerConnector: (connectorId?: string) => connectorId is "ledger"; export declare const isSafeConnector: (connectorId?: string) => connectorId is "safe"; export declare const isInjectedConnector: (connectorId?: string) => connectorId is "injected"; export { toReadableAmount, fromReadableAmount, flattenChildren, nFormatter, truncateENSAddress, truncateEthAddress, };