import type { CommandDef } from '@moxxy/sdk'; /** * Registry of `/` slash commands shared across every channel. * Plugins contribute via `PluginSpec.commands`; channels read with * `list()` / `get()` / `match()` to render their picker and dispatch * matching user input. * * Naming conflicts throw at registration time so two plugins can't * silently shadow the same name — use `replace()` for explicit * overrides (e.g. user-config tweaks of a built-in). */ export declare class CommandRegistry { private readonly commands; /** Reverse-lookup table: alias → primary name. */ private readonly aliases; register(cmd: CommandDef): void; replace(cmd: CommandDef): void; unregister(name: string): void; get(name: string): CommandDef | undefined; has(name: string): boolean; list(): ReadonlyArray; /** * Filter to commands visible in `channel`. Commands with no * `channels` field are visible everywhere; commands with a list are * visible only when `channel` appears in it. */ listForChannel(channel: string): ReadonlyArray; } //# sourceMappingURL=commands.d.ts.map