UNPKG

dotbit-sdk-allin

Version:

A complete .bit SDK and utilities in TypeScript

17 lines (16 loc) 1.01 kB
import { BitAccountRecord, BitAccountRecordExtended } from '../fetchers/BitIndexer.type'; import { CHAR_TYPE } from '../const'; export declare function isSupportedAccount(account: string): boolean; export declare function toDottedStyle(inputAccount: string): string; export declare function toHashedStyle(inputAccount: string): string; export declare function accountIdHex(account: string): string; export declare function toRecordExtended(record: BitAccountRecord): BitAccountRecordExtended; export declare function isSubAccount(account: string): boolean; export declare function trimAccountSuffix(account: string): string; export interface ICharInfo { char_set_name: CHAR_TYPE; char: string; } export declare function digitalEmojiUnifiedHandle(str: string): string; export declare function graphemesAccount(account: string, addSuffix?: boolean, language?: string): ICharInfo[]; export declare function getAccountCharsetTypes(account: string): Partial<Record<CHAR_TYPE, boolean>>;