import * as jsonrpcws from '@akala/json-rpc-ws'; import { CommandProcessor, type StructuredParameters } from '../model/processor.js'; import type { Command } from '../metadata/index.js'; import { Container } from '../model/container.js'; import { Readable } from 'stream'; import { type LoggerWrapper, type MiddlewarePromise, type TypedSerializableObject, type SocketAdapter } from '@akala/core'; import { Trigger } from '../model/trigger.js'; type OnlyArray = Extract; export declare class JsonRpc extends CommandProcessor { private readonly client; static connect(address: string): Promise; static trigger: Trigger<[media: SocketAdapter>], Promise>; static getConnection(socket: SocketAdapter>, container?: Container, otherInject?: (params: StructuredParameters[]>) => void, log?: LoggerWrapper): jsonrpcws.Connection; handle(container: Container, command: Command, params: StructuredParameters>>): MiddlewarePromise; get connectionId(): `${string}-${string}-${string}-${string}-${string}`; constructor(client: jsonrpcws.BaseConnection); } export {};