import { z } from 'zod/mini';
import type { RpcSchemaMap } from '../types/index.js';
import type { RpcTransport } from './RpcTransport.js';
/** JSON-RPC client transport that posts schema-validated requests over HTTP. */
export declare class HttpRpcTransport<T extends RpcSchemaMap = RpcSchemaMap> implements RpcTransport<T> {
    protected readonly _passThrough: boolean;
    protected readonly _rpcUrl: string;
    protected readonly _schemas: T;
    /** Creates an instance with the supplied configuration. */
    constructor(rpcUrl: string, schemas: T, passThrough?: boolean);
    /** Posts a JSON-RPC request and parses its result with the configured method schema. */
    sendRequest<TMethod extends keyof T>(method: TMethod, params?: z.input<T[TMethod]['params']['to']>): Promise<z.output<T[TMethod]['result']['from']>>;
    private callRpc;
}
//# sourceMappingURL=HttpRpcTransport.d.ts.map