import type { CommandSpec } from "@copilotkit/channels-core"; /** A REST client subset (discord.js REST exposes `put`). */ export interface RestLike { put(route: `/${string}`, options: { body: unknown; }): Promise; } interface DiscordOption { name: string; description: string; type: number; required: boolean; choices?: { name: string; value: string | number; }[]; } /** Map a JSON Schema (CommandSpec.options) to Discord application-command options. */ export declare function jsonSchemaToDiscordOptions(schema: Record | undefined): DiscordOption[]; /** The REST body for one application command. */ export declare function buildCommandBody(spec: CommandSpec): { name: string; description: string; options: DiscordOption[]; }; /** Publish the bot's commands: guild-scoped when guildId is set (instant), else global. */ export declare function registerCommands(rest: RestLike, appId: string, guildId: string | undefined, specs: readonly CommandSpec[]): Promise; export {}; //# sourceMappingURL=commands.d.ts.map