export interface RpcResult {
    result: any;
    error: any;
    id: string;
}
export declare class RpcService {
    private static readonly code;
    private static url;
    private static apiToken;
    private static maxRetry;
    static init(url: string, apiToken?: string, maxRetry?: number): void;
    static sendChainRequest(method: string, params: Object): Promise<RpcResult>;
    private static setProtocol;
    private static sendRequest;
    static processStreamResponse(stream: any): Promise<string>;
}
