UNPKG

dotbit

Version:

A complete .bit SDK and utilities in TypeScript

13 lines (12 loc) 788 B
import { KeyInfo } from '../fetchers/BitIndexer.type'; import { TypedMessage } from '@metamask/eth-sig-util'; export declare function mmJsonHashAndChainIdHex(typedData: TypedMessage<any>, chainId: number): string; export declare function pad0x(str: string): string; export declare function remove0x(str: string): string; export declare function isEmptyAddress(address: string): boolean; export declare function sleep(ms: number): Promise<unknown>; export declare function isTronAddress(address: string): boolean; export declare function isEthAddress(address: string): boolean; export declare function checkKeyInfo(keyInfo: KeyInfo): boolean; export declare function stringVisualLength(str: string): number; export declare function matchDWebProtocol(str: string): RegExpMatchArray | null;