import { KnownKeys, Api, OverloadedParameters } from "../types"; import { RequestCoordinator } from "./request-coordinator"; export declare class Executor { #private; /** * The Executor handles execution of methods on the given API */ constructor(requestCoordinator: RequestCoordinator); /** * Stop processing requests. We pass this call through to the requestCoordinator, which means that api * validation will continue to work after calling stop() in execute(). */ stop(): void; /** * Finalise shutdown of the underlying RequestCoordinator. */ end(): void; /** * Executes the method with the given methodName on the API * @param methodName - The name of the JSON-RPC method to execute. * @param params - The params to pass to the JSON-RPC method. */ execute>(api: T, methodName: M, params: OverloadedParameters): Promise<{ value: ReturnType; }>; } //# sourceMappingURL=executor.d.ts.map