import type { base58String } from '@vandeurenglenn/base58'; import type { base32String } from '@vandeurenglenn/base32'; import type { HexString } from '@vandeurenglenn/is-hex'; export declare const jsonStringifyBigInt: (key: any, value: any) => any; export declare const jsonParseBigInt: (key: any, value: any) => any; export default class BasicInterface { #private; name: string; textEncoder: TextEncoder; textDecoder: TextDecoder; get keys(): string[]; get encoded(): Uint8Array; set encoded(value: Uint8Array); get decoded(): object; set decoded(value: object); set proto(value: object); get proto(): object; from(value: Uint8Array | ArrayBuffer | HexString | base58String | base32String | string | number[] | object): this; decode(encoded?: Uint8Array): Object; encode(decoded?: object): Uint8Array; create(options: object): void; static _protoCache: WeakMap; protoEncode(data: object): Uint8Array; protoDecode(data: Uint8Array): object; isHex(string: string): boolean; isBase32(string: string): boolean; isBase58(string: string): boolean; fromBs32(encoded: string): object; fromBs58(encoded: base58String): object; toArray(): Promise; fromString(string: string): object; fromHex(string: string): object; fromArray(array: number[]): object; fromArrayBuffer(uint8Array: ArrayBuffer): Uint8Array; fromUint8Array(uint8Array: Uint8Array): Uint8Array; toUint8Array(format: 'bs32' | 'bs58' | 'hex' | 'utf8' | 'uint8Array' | 'uint8ArrayString'): any; toString(): string; toHex(): string; /** * @return {String} encoded */ toBs32(): base32String; /** * @return {String} encoded */ toBs58(): base58String; }