export interface CommandItemEntry { id: string; value: string; keywords: string; onSelect?: () => void; disabled: boolean; } export interface CommandMenuContext { open: () => boolean; setOpen: (v: boolean) => void; query: () => string; setQuery: (q: string) => void; highlightedId: () => string | null; setHighlightedId: (id: string | null) => void; registerItem: (entry: CommandItemEntry) => () => void; filteredItems: () => CommandItemEntry[]; select: (id: string) => void; moveHighlight: (delta: number) => void; highlightFirst: () => void; triggerEl: { current: HTMLElement | null; }; setTriggerEl: (el: HTMLElement | null) => void; listId: string; inputId: string; } export declare function getCommandMenuContext(): CommandMenuContext; export declare function setCommandMenuContext(ctx: CommandMenuContext): void; interface Props { children?: import('svelte').Snippet; open?: boolean; onOpenChange?: (v: boolean) => void; filter?: (value: string, keywords: string, query: string) => boolean; } declare const CommandMenu: import("svelte").Component; type CommandMenu = ReturnType; export default CommandMenu;