import { TransportOptions, JsonRpcRequest } from './types'; import { BaseTransport } from './base'; /** * Makes a JSON-RPC request using native fetch API * Universal implementation that works in both Node.js (20.19+) and browser * * @param url - The URL to the JSON-RPC endpoint * @param request - The JSON-RPC request object * @param fetchMethod - Optional fetch implementation (defaults to global fetch) * @param timeoutMs - Request timeout in milliseconds (default: 30000) * @param httpsOptions - Optional TLS options (Node.js only): rejectUnauthorized, ca * @returns Promise resolving to the JSON-RPC result */ export declare const jsonRpc: (url: string, request: Partial, fetchMethod?: typeof fetch, timeoutMs?: number, httpsOptions?: { rejectUnauthorized?: boolean; ca?: string | Buffer | string[]; }) => Promise; export declare class HttpTransport extends BaseTransport { constructor(options: TransportOptions); get nonRetriableOperations(): string[]; isBroadcastOperation(method: string): boolean; send(api: string, data: { id?: number; method: string; params: unknown[]; }, callback?: (err: Error | null, result?: unknown, attempt?: number) => void): void; }