import * as jsonrpcws from '@akala/json-rpc-ws/browser'; import { CommandProcessor, type StructuredParameters } from '../model/processor.js'; import type { Command } from '../metadata/index.js'; import { Container } from '../model/container.js'; import { type LoggerWrapper, type MiddlewarePromise, type TypedSerializableObject } from '@akala/core'; import { type HandlerResult } from '../protocol-handler.js'; import { Trigger } from '../model/trigger.js'; type OnlyArray = Extract; export declare function handler(url: URL, options: { signal: AbortSignal; }): Promise>; export declare class JsonRpcBrowser extends CommandProcessor { private readonly client; static connect(address: string): Promise; static trigger: Trigger<[media: jsonrpcws.SocketAdapter>>], Promise>; static getConnection(socket: jsonrpcws.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 {};