import 'isomorphic-fetch'; import { Transport, JsonRpcRequest } from './JsonRpc'; /** * Transport implementation based on HTTP protocols */ export default class HttpTransport implements Transport { url: string; headers: any; constructor(url: string, headers?: any); request(request: Array): Promise>; } declare type DefinedAnswer = { method: string; params: string; result?: any; error?: any; }; /** * Transport which replies with predefined responses */ export declare class PredefinedTransport implements Transport { responses: Array; addResponse(method: string, params: Array, result?: any, error?: any): PredefinedTransport; request(req: Array): Promise>; } export {};