/// <reference types="react" />
import type { ChainApiTypes, Api } from "@equilab/api";
import type { ApiRx } from "@polkadot/api";
import { Observable } from "rxjs";
import type { NetHook } from "./types";
import type { useBase as useBaseHook } from "./base";
declare type ApiContextType<T extends ChainApiTypes = "Eq"> = Api<T, "rxjs"> & {
    /** @deprecated TODO use standard apiRx interface with augment-api imports; eg. const { apiRx$ } = useApi() */
    api$: Observable<Api<T, "rxjs">>;
    apiRx$: Observable<ApiRx>;
};
export declare const ApiProvider: import("react").FC<{
    useNet: NetHook;
    useBase: typeof useBaseHook;
    updateTimestamp?: number | undefined;
}>;
export declare const useApi: <T extends ChainApiTypes = "Eq">() => ApiContextType<T> | undefined;
export {};
