1 | export declare type DefinitionTypeType = string;
|
2 | export declare type DefinitionTypeEnum = {
|
3 | _fallback?: DefinitionTypeType;
|
4 | } & ({
|
5 | _enum: DefinitionTypeType[];
|
6 | } | {
|
7 | _enum: Record<string, DefinitionTypeType | null>;
|
8 | });
|
9 | export declare type DefinitionTypeSet = {
|
10 | _fallback?: DefinitionTypeType;
|
11 | _set: Record<string, number>;
|
12 | };
|
13 | declare type DefinitionTypeStructExtra = {
|
14 | _alias?: Record<string, DefinitionTypeType>;
|
15 | _fallback?: DefinitionTypeType;
|
16 | } & Record<string, unknown>;
|
17 | export declare type DefinitionTypeStruct = Record<string, DefinitionTypeType> | DefinitionTypeStructExtra;
|
18 | export declare type DefinitionType = string | DefinitionTypeEnum | DefinitionTypeSet | DefinitionTypeStruct;
|
19 | export interface DefinitionRpcParam {
|
20 | isHistoric?: boolean;
|
21 | isOptional?: boolean;
|
22 | name: string;
|
23 | type: DefinitionTypeType;
|
24 | }
|
25 | export interface DefinitionRpc {
|
26 | alias?: string[];
|
27 | aliasSection?: string;
|
28 | description: string;
|
29 | endpoint?: string;
|
30 | isSigned?: boolean;
|
31 | params: DefinitionRpcParam[];
|
32 | type: DefinitionTypeType;
|
33 | }
|
34 | export interface DefinitionRpcExt extends DefinitionRpc {
|
35 | isSubscription: boolean;
|
36 | jsonrpc: string;
|
37 | method: string;
|
38 | pubsub?: [string, string, string];
|
39 | section: string;
|
40 | }
|
41 | export interface DefinitionRpcSub extends DefinitionRpc {
|
42 | pubsub: [string, string, string];
|
43 | }
|
44 | export declare type DefinitionsRpc = Record<string, DefinitionRpc | DefinitionRpcSub>;
|
45 | export declare type DefinitionsTypes = Record<string, DefinitionType>;
|
46 | export interface Definitions {
|
47 | rpc: DefinitionsRpc;
|
48 | types: DefinitionsTypes;
|
49 | }
|
50 | export {};
|