import { ApiPromise } from '@polkadot/api';
export declare class SubstrateConnect {
    protected static api: ApiPromise;
    protected static connected: boolean;
    static connect: (nodeUrl?: string | undefined, metadata?: Record<string, string> | undefined) => Promise<ApiPromise>;
    static disconnect: () => void;
    /** Retrieve the chain & node information via RPC calls and log into console.  */
    protected static logChainInfo: () => Promise<void>;
}
export declare const Api: typeof SubstrateConnect;
export default SubstrateConnect;
/** Get the current open connection to Substrate node. */
export declare const getApi: (url: string) => Promise<ApiPromise>;
