import { JsonRpcRequestPayload, JsonRpcRequestCallback, JsonRpcBatchRequestCallback, JsonRpcResponsePayload, ProviderEnableEvents } from '@magic-sdk/types'; import { BaseModule } from './base-module'; import { PromiEvent } from '../util/promise-tools'; import { EventsDefinition, TypedEmitter } from '../util/events'; export declare class RPCProviderModule extends BaseModule implements TypedEmitter { readonly isMagic = true; sendAsync(payload: Partial, onRequestComplete: JsonRpcRequestCallback): void; sendAsync(payload: Partial[], onRequestComplete: JsonRpcBatchRequestCallback): void; sendAsync(payload: Partial | Partial[], onRequestComplete: JsonRpcRequestCallback | JsonRpcBatchRequestCallback): void; send(method: string, params?: any[]): PromiEvent; send(payload: JsonRpcRequestPayload | JsonRpcRequestPayload[], onRequestComplete: JsonRpcRequestCallback): void; send(payload: JsonRpcRequestPayload, none: void): JsonRpcResponsePayload; enable(): PromiEvent void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; /** * Here, we wrap `BaseModule.request` with an additional check * to determine if the RPC method requires a test-mode prefix. */ request(payload: Partial): PromiEvent void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; } : Events & { done: (result: ResultType) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; /** * Prefixes Ethereum RPC methods with a `testMode` identifier. This is done so * that Magic's