1 | import type { ExactDerive } from '@polkadot/api-derive';
|
2 | import type { AnyFunction } from '@polkadot/types/types';
|
3 | import type { ApiTypes, DecorateMethod, MethodResult } from '../types/index.js';
|
4 | type AnyDeriveSection = Record<string, AnyFunction>;
|
5 | type AnyDerive = Record<string, AnyDeriveSection>;
|
6 | type DeriveSection<ApiType extends ApiTypes, Section extends AnyDeriveSection> = {
|
7 | [M in keyof Section]: MethodResult<ApiType, Section[M]>;
|
8 | };
|
9 | export type AllDerives<ApiType extends ApiTypes> = {
|
10 | [S in keyof ExactDerive]: DeriveSection<ApiType, ExactDerive[S]>;
|
11 | };
|
12 |
|
13 |
|
14 |
|
15 | export declare function decorateDeriveSections<ApiType extends ApiTypes>(decorateMethod: DecorateMethod<ApiType>, derives: AnyDerive): AllDerives<ApiType>;
|
16 | export {};
|