import { JsonRpcRequest, JsonRpcResponse } from './typings'; declare class Popup { url: string; private window; constructor(url: string); open(): Promise; private getWindowResponse; requestHandler: () => Promise; private clear; } declare class RequestPopupHandler { url: string; private window; private requestCount; private emitter; private ready; private cleanExit; constructor(url: string); sendRequest(r: { chainId: string; request: JsonRpcRequest; }): Promise>; requestHandler: (requestId: string) => Promise; handler: (event: MessageEvent<{ type?: 'json_rpc_response'; response: any; }>) => Promise; } export { RequestPopupHandler }; export default Popup;