import { runChannelSocket } from '@xopcai/xopc/channels/enterprise/socket.js'; export declare const snowflake: RegExp; export declare function runDiscordGateway(options: { token: string; intents?: number; signal: AbortSignal; online: Parameters[2]; onFailure: NonNullable[3]>; authenticate: (signal: AbortSignal) => Promise<{ botId: string; gateway: unknown; }>; receive: (message: Record, botId: string) => Promise; onDispatchEvent?: (eventType: string, data: Record, botId: string) => Promise; }): Promise;