import { ClientEndpoint, type EndpointControl, type EndpointManagement, type EndpointSendRequest } from 'zhin.js/adapter'; import type { CapabilityId } from 'zhin.js'; import { type OneBot11WsConfig } from './protocol.js'; import { type OneBot11WsCreateOptions, type OneBot11WsSocket } from './ws-types.js'; import { type Onebot11Client } from './client.js'; export interface OneBot11WsEndpointOptions { readonly id: CapabilityId; readonly config: OneBot11WsConfig; readonly createWebSocket?: (url: string, options: OneBot11WsCreateOptions) => OneBot11WsSocket; } export declare class OneBot11WsEndpoint extends ClientEndpoint { #private; readonly client: Onebot11Client; readonly management: EndpointManagement; readonly control: EndpointControl; readonly content: import("@zhin.js/adapter").EndpointContentPort; constructor(options: OneBot11WsEndpointOptions); start(): Promise; stop(): Promise; send({ conversation, payload }: EndpointSendRequest): Promise; recallMessage(messageId: string): Promise; }