/** * Milky 适配器:单一适配器支持 WS 正向 / SSE / Webhook / 反向 WS,由 config.connection 区分 */ import { Adapter, Plugin } from 'zhin.js'; import { MilkyWsClient } from './endpoint-ws.js'; import { MilkySseClient } from './endpoint-sse.js'; import { MilkyWebhookEndpoint } from './endpoint-webhook.js'; import { MilkyWssServer } from './endpoint-wss.js'; import type { MilkyEndpointConfig } from './types.js'; export type MilkyBot = MilkyWsClient | MilkySseClient | MilkyWebhookEndpoint | MilkyWssServer; export declare class MilkyAdapter extends Adapter { #private; static readonly capabilities: readonly ["inbound", "outbound"]; static outboundRichSegmentPolicy: import("zhin.js").OutboundRichSegmentPolicy; constructor(plugin: Plugin); createEndpoint(config: MilkyEndpointConfig): MilkyBot; kickMember(endpointId: string, sceneId: string, userId: string): Promise; muteMember(endpointId: string, sceneId: string, userId: string, duration?: number): Promise; muteAll(endpointId: string, sceneId: string, enable?: boolean): Promise; setAdmin(endpointId: string, sceneId: string, userId: string, enable?: boolean): Promise; setMemberNickname(endpointId: string, sceneId: string, userId: string, nickname: string): Promise; setGroupName(endpointId: string, sceneId: string, name: string): Promise; listMembers(endpointId: string, sceneId: string): Promise<{ members: unknown[]; count: number; }>; getGroupInfo(endpointId: string, sceneId: string): Promise; start(): Promise; } //# sourceMappingURL=adapter.d.ts.map