import type { ParsedSlashInput } from "./parser.js";
import type { SlashCommandSpec } from "./types.js";
export declare class SlashCommandRegistry {
    private readonly specs;
    private readonly byName;
    constructor(specs?: readonly SlashCommandSpec[]);
    register(spec: SlashCommandSpec): void;
    registerMany(specs: readonly SlashCommandSpec[]): void;
    find(command: string): SlashCommandSpec | undefined;
    resolve(parsed: ParsedSlashInput): SlashCommandSpec | undefined;
    list(): readonly SlashCommandSpec[];
}
export declare function createSlashCommandRegistry(specs: readonly SlashCommandSpec[]): SlashCommandRegistry;
