import { Codec } from './codec'; import BN from 'bn.js'; export declare type AnyFunction = (...args: any[]) => any; interface AnyJsonArray extends Array { } export declare type AnyJson = string | number | boolean | null | undefined | AnyJsonArray | { [index: string]: AnyJson; }; export declare type AnyNumber = BN | BigInt | Uint8Array | number | string; export declare type AnyString = string | string; export declare type AnyU8a = Uint8Array | number[] | string; export declare type ArrayElementType> = T extends ReadonlyArray ? ElementType : never; export declare type BareOpts = boolean | Record; export declare type Callback = E extends Codec ? (result: T, extra: E) => void | Promise : (result: T) => void | Promise; export {};