import { JsonRpcRequest, JsonRpcResponse } from './typings';
declare class Popup {
    url: string;
    private window;
    constructor(url: string);
    open(): Promise<unknown>;
    private getWindowResponse;
    requestHandler: () => Promise<any>;
    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<unknown>;
    }): Promise<JsonRpcResponse<unknown>>;
    requestHandler: (requestId: string) => Promise<any>;
    handler: (event: MessageEvent<{
        type?: 'json_rpc_response';
        response: any;
    }>) => Promise<void>;
}
export { RequestPopupHandler };
export default Popup;
