/** * Command component types */ /** * Context provided by the parent seki-command component */ export interface CommandContext { /** * Current search/filter value */ value: string; /** * Index of the currently highlighted item */ highlightedIndex: number; /** * Currently highlighted item ID (for ARIA) */ highlightedId: string | null; /** * The highlighted item's host element, or null when nothing is highlighted */ highlightedItem: HTMLElement | null; /** * Whether an item (host element) matches the current search */ isItemMatch: (item: Element) => boolean; /** * Whether no item matches the current filter */ isEmpty: boolean; /** * Filter function to check if text matches the current search */ filter: (text: string) => boolean; }