import { type Logger } from "@/logger.js"; export interface DiscordAdapterConfig { enabled: boolean; token?: string; mentionOnly: boolean; allowBots: boolean; allowedGuilds: string[]; allowedChannels: string[]; channelSessions?: Record; sessionCommand: string; gatewayUrl?: string; gatewayToken?: string; gatewayPassword?: string; responseChunkSize: number; } export interface DiscordAdapterGatewayConfig { url: string; token?: string; password?: string; } export declare const DEFAULT_DISCORD_RESPONSE_CHUNK = 1900; export declare function splitDiscordMessage(text: string, maxLength?: number): string[]; export declare function stripDiscordBotMention(content: string, botId: string): string; export declare function extractSessionOverride(content: string, command: string): { sessionKey?: string; content: string; matched: boolean; }; export declare function resolveDiscordChannelSessionKey(channelId: string, channelSessions?: Record, parentChannelId?: string): string | undefined; export declare function parseAgentIdFromSessionKey(sessionKey?: string): string | undefined; export declare function extractUiMeta(payload: unknown): { uiOnly?: boolean; textFallback?: string; }; export declare class DiscordGatewayAdapter { private config; private gateway; private client; private gatewayClient; private logger; private started; constructor(config: DiscordAdapterConfig, gateway: DiscordAdapterGatewayConfig, logger?: Logger); start(): Promise; stop(): Promise; private handleMessage; }