/** * commandPalette — a keyboard-first action launcher (⌘K pattern). * * Wraps cmdk for filtering, ranking, and roving-focus behavior. Two entry * points: * - `CommandPalette` — the dialog form: mount once, control with * `open`/`onOpenChange` (pair with `useCommandPaletteShortcut`). * - `Command` + subcomponents — the bare surface, for embedding the same * list inside a popover or page. */ import * as React from "react"; import { Command as CommandPrimitive } from "cmdk"; declare const Command: React.ForwardRefExoticComponent, HTMLDivElement>, keyof React.HTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.HTMLAttributes | "key" | "asChild"> & { label?: string; shouldFilter?: boolean; filter?: (value: string, search: string, keywords?: string[]) => number; defaultValue?: string; value?: string; onValueChange?: (value: string) => void; loop?: boolean; disablePointerSelection?: boolean; vimBindings?: boolean; } & React.RefAttributes, "ref"> & React.RefAttributes>; declare const CommandInput: React.ForwardRefExoticComponent, HTMLInputElement>, keyof React.InputHTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.InputHTMLAttributes | "key" | "asChild">, "type" | "onChange" | "value"> & { value?: string; onValueChange?: (search: string) => void; } & React.RefAttributes, "ref"> & React.RefAttributes>; declare const CommandList: React.ForwardRefExoticComponent, HTMLDivElement>, keyof React.HTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.HTMLAttributes | "key" | "asChild"> & { label?: string; } & React.RefAttributes, "ref"> & React.RefAttributes>; declare const CommandEmpty: React.ForwardRefExoticComponent, HTMLDivElement>, keyof React.HTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.HTMLAttributes | "key" | "asChild"> & React.RefAttributes, "ref"> & React.RefAttributes>; declare const CommandGroup: React.ForwardRefExoticComponent, HTMLDivElement>, keyof React.HTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.HTMLAttributes | "key" | "asChild">, "heading" | "value"> & { heading?: React.ReactNode; value?: string; forceMount?: boolean; } & React.RefAttributes, "ref"> & React.RefAttributes>; declare const CommandSeparator: React.ForwardRefExoticComponent, HTMLDivElement>, keyof React.HTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.HTMLAttributes | "key" | "asChild"> & { alwaysRender?: boolean; } & React.RefAttributes, "ref"> & React.RefAttributes>; declare const CommandItem: React.ForwardRefExoticComponent, HTMLDivElement>, keyof React.HTMLAttributes | "key"> & { ref?: React.Ref; } & { asChild?: boolean; }, keyof React.HTMLAttributes | "key" | "asChild">, "onSelect" | "disabled" | "value"> & { disabled?: boolean; onSelect?: (value: string) => void; value?: string; keywords?: string[]; forceMount?: boolean; } & React.RefAttributes, "ref"> & React.RefAttributes>; declare function CommandShortcut({ className, ...props }: React.HTMLAttributes): React.JSX.Element; declare namespace CommandShortcut { var displayName: string; } export type CommandPaletteProps = React.ComponentPropsWithoutRef & { open: boolean; onOpenChange: (open: boolean) => void; /** Accessible dialog title (screen readers only). Override for non-English apps. */ label?: string; /** Accessible dialog description (screen readers only). */ description?: string; }; /** The ⌘K dialog: a floating command surface on the overlay tier. */ declare function CommandPalette({ open, onOpenChange, label, description, children, ...props }: CommandPaletteProps): React.JSX.Element; declare namespace CommandPalette { var displayName: string; } /** * Global keyboard shortcut for a command palette (⌘K / Ctrl+K by default). * Returns nothing — pass the same state setter that controls `open`. */ declare function useCommandPaletteShortcut(onToggle: (updater: (open: boolean) => boolean) => void, key?: string): void; export * from "./variants.js"; export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut, CommandPalette, useCommandPaletteShortcut, }; //# sourceMappingURL=index.d.ts.map