import { type Client } from "discord.js"; import type { Product } from "../util/config.js"; import type { CommandHandler } from "./base.js"; export interface ChatSlashContext { /** Resolve the (handle, org) bound to this bot at the time of invocation. */ ownHandle: string | null; ownOrgSlug: string | null; /** Lookup product for the interaction's guild — same logic as messageCreate. */ getProductByGuild: (guildId: string) => Product | null; } /** * Register the `/chat` command in every guild the bot is currently in, * and wire the interaction listener that routes the user text through * `onCommand`. Idempotent — Discord's `set` API replaces previously- * registered guild commands with the same name. */ export declare function registerChatSlash(client: Client, onCommand: CommandHandler, getContext: () => ChatSlashContext): Promise;