/** * OneBot 12 适配器:单一适配器支持正向 WS / Webhook / 反向 WS,由 config.connection 区分 * 协议文档:https://12.onebot.dev/ */ import { Adapter, Plugin } from 'zhin.js'; import { OneBot12WsClient } from './endpoint-ws.js'; import { OneBot12WebhookEndpoint } from './endpoint-webhook.js'; import { OneBot12WssServer } from './endpoint-wss.js'; import type { OneBot12EndpointConfig } from './types.js'; export type OneBot12Bot = OneBot12WsClient | OneBot12WebhookEndpoint | OneBot12WssServer; export declare class OneBot12Adapter extends Adapter { #private; static readonly capabilities: readonly ["inbound", "outbound"]; static outboundRichSegmentPolicy: import("zhin.js").OutboundRichSegmentPolicy; constructor(plugin: Plugin); createEndpoint(config: OneBot12EndpointConfig): OneBot12Bot; start(): Promise; } //# sourceMappingURL=adapter.d.ts.map