import type { Component } from 'svelte'; export type CommandIcon = Component<{ class?: string; size?: number | string; strokeWidth?: number | string; }>; export interface CommandItem { id: string; label: string; group?: string; shortcut?: string[]; disabled?: boolean; subtitle?: string; keywords?: string; href?: string; icon?: CommandIcon; } interface CommandPaletteProps { open?: boolean; query?: string; items?: CommandItem[]; placeholder?: string; emptyLabel?: string; loading?: boolean; voiceEnabled?: boolean; listening?: boolean; /** When false, opening keeps the current query (voice dictation). */ resetQueryOnOpen?: boolean; micLabel?: string; stopMicLabel?: string; class?: string; onselect?: (item: CommandItem) => void; onclose?: () => void; onquery?: (query: string) => void; onmicclick?: () => void; } declare const CommandPalette: Component; type CommandPalette = ReturnType; export default CommandPalette;