/** * Discord channel adapter — connects a Discord server to the cumulus gateway. * Uses discord.js Gateway WebSocket. * * Thread naming: discord-{userId}-{channelId} */ import { type MessagePipelineOptions } from '../../lib/gateway.js'; export interface DiscordAdapterConfig { botToken: string; /** Gateway pipeline options (basePath, claudePath, sharedMcpPort) */ pipelineOpts?: Partial>; } export interface DiscordAdapterHandle { stop: () => Promise; } /** * Split a long message into chunks that fit within Discord's 2000 char limit. * Tries to split at paragraph boundaries, then line boundaries. */ export declare function splitDiscordMessage(text: string): string[]; /** * Create and start a Discord adapter that routes messages through the cumulus * gateway pipeline. */ export declare function createDiscordAdapter(config: DiscordAdapterConfig): Promise; //# sourceMappingURL=discord.d.ts.map