import { type OneBot11ActionResponse, type OneBot11Event } from './protocol.js'; import { type OneBot11PendingAction, type OneBot11WsSocket } from './ws-types.js'; export declare function decodeWsPayload(data: unknown): string; export declare function handleOneBot11WsMessage(data: unknown, options: { readonly endpointId: string; readonly pending: Map; readonly ingest: (ev: OneBot11Event) => void; }): void; export declare function callOneBot11WsAction(ws: OneBot11WsSocket | undefined, pending: Map, requestId: { value: number; }, action: string, params: Record): Promise; export declare function rejectAllPending(pending: Map, message?: string): void;