import { type HTMLAttributes, type ReactNode } from "react";
export interface Command {
id: string;
label: string;
icon?: ReactNode;
group?: string;
onSelect: () => void;
}
export interface CommandPaletteProps extends Omit, "children"> {
open: boolean;
onOpenChange: (open: boolean) => void;
commands: Command[];
placeholder?: string;
/** Accessible label for the search input (default: "コマンド検索") */
searchLabel?: string;
/** Accessible label for the dialog (default: "コマンドパレット") */
label?: string;
/** Message shown when no commands match (default: "該当するコマンドが見つかりません") */
emptyMessage?: string;
}
export declare const CommandPalette: import("react").ForwardRefExoticComponent>;