1 | import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
|
2 | import { U8aFixed } from '@polkadot/types-codec';
|
3 | declare class BaseAccountId extends U8aFixed {
|
4 | constructor(registry: Registry, allowedBits?: number, value?: AnyU8a);
|
5 | /**
|
6 | * @description Compares the value of the input to see if there is a match
|
7 | */
|
8 | eq(other?: unknown): boolean;
|
9 | /**
|
10 | * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
11 | */
|
12 | toHuman(): string;
|
13 | /**
|
14 | * @description Converts the Object to JSON, typically used for RPC transfers
|
15 | */
|
16 | toJSON(): string;
|
17 | /**
|
18 | * @description Converts the value in a best-fit primitive form
|
19 | */
|
20 | toPrimitive(): string;
|
21 | /**
|
22 | * @description Returns the string representation of the value
|
23 | */
|
24 | toString(): string;
|
25 | /**
|
26 | * @description Returns the base runtime type name for this instance
|
27 | */
|
28 | toRawType(): string;
|
29 | }
|
30 | /**
|
31 | * @name GenericAccountId
|
32 | * @description
|
33 | * A wrapper around an AccountId/PublicKey representation. Since we are dealing with
|
34 | * underlying PublicKeys (32 bytes in length), we extend from U8aFixed which is
|
35 | * just a Uint8Array wrapper with a fixed length.
|
36 | */
|
37 | export declare class GenericAccountId extends BaseAccountId {
|
38 | constructor(registry: Registry, value?: AnyU8a);
|
39 | }
|
40 | export declare class GenericAccountId33 extends BaseAccountId {
|
41 | constructor(registry: Registry, value?: AnyU8a);
|
42 | }
|
43 | export {};
|