import { ApiInterfaceRx } from "../api/types"; import { AnyFunction } from "../types/types"; import { Observable } from 'rxjs'; import * as accounts from './accounts'; import * as chain from './chain'; import * as contracts from './contracts'; import * as imOnline from './imOnline'; import * as session from './session'; import * as staking from './staking'; import * as treasury from './treasury'; export * from './type'; export declare const derive: { accounts: typeof accounts; chain: typeof chain; contracts: typeof contracts; imOnline: typeof imOnline; session: typeof session; staking: typeof staking; treasury: typeof treasury; }; declare type DeriveSection
= { [Method in keyof Section]: Section[Method] extends AnyFunction ? ReturnType : never; }; declare type DeriveAllSections = { [Section in keyof AllSections]: DeriveSection; }; export declare type DeriveCustom = Record (...args: any[]) => Observable>>; export declare type ExactDerive = DeriveAllSections; /** @internal */ export default function decorateDerive(api: ApiInterfaceRx, custom?: DeriveCustom): ExactDerive;