import { Connection } from '@safecoin/web3.js';
export declare type ConnectionWithInternals = Connection & {
    _rpcWebSocket: {
        close: () => Promise<void>;
    };
};
export declare function closeConnection(connection: Connection, forceExit?: boolean): Promise<void>;
