import type { EnterpriseMedia } from '@xopcai/xopc/channels/enterprise/media.js'; export declare const DISCORD_API_BASE = "https://discord.com/api/v10"; export declare const DISCORD_SNOWFLAKE_RE: RegExp; export declare class DiscordKeyedQueue { private readonly tails; enqueue(key: string, task: () => Promise): Promise; } export declare const discordSendQueue: DiscordKeyedQueue; export interface DiscordBotIdentity { botId: string; applicationId?: string; username?: string; } export declare function discordRestCall(params: { token: string; method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE'; path: string; body?: unknown; formData?: FormData; signal?: AbortSignal; timeoutMs?: number; }): Promise; export declare function verifyDiscordBot(token: string, expectedIdentity?: string, signal?: AbortSignal): Promise; export declare function verifyDiscordSetup(token: string, signal?: AbortSignal): Promise; export declare function openDiscordDmChannel(token: string, userId: string): Promise; export declare function sendDiscordTextMessage(params: { token: string; channelId: string; text: string; replyToId?: string; textChunkLimit?: number; embeds?: Array>; components?: Array>; poll?: Record; signal?: AbortSignal; }): Promise; export declare function sendDiscordMediaMessage(params: { token: string; channelId: string; media: EnterpriseMedia; caption?: string; replyToId?: string; textChunkLimit?: number; signal?: AbortSignal; }): Promise; export declare function addDiscordReaction(token: string, channelId: string, messageId: string, emoji: string): Promise; export declare function removeDiscordReaction(token: string, channelId: string, messageId: string, emoji: string): Promise; export declare function sendDiscordTyping(token: string, channelId: string): Promise;