import { CommandPaletteOptions } from './command-palette.types';
/**
* Headless command palette (Cmd/Ctrl+K). Wires the combobox/listbox ARIA
* pattern over existing markup, filters items as the user types, hides empty
* groups, manages active-descendant keyboard navigation and dispatches a
* select event. Applies no visual styles — only ARIA + `data-state`.
*
* Markup:
* ```html
*
*
*
*
*
*
*
*
*
No results
*
*
*
* ```
*/
export declare class CommandPalette {
private readonly root;
private readonly overlay;
private readonly input;
private readonly list;
private readonly emptyEl;
private readonly hotkey;
private readonly closeOnOverlayClick;
private readonly closeOnEscape;
private readonly clearOnClose;
private readonly filterFn;
private readonly trap;
private items;
private visible;
private activeIndex;
private open;
private previouslyFocused;
private cleanups;
constructor(root: HTMLElement, options?: CommandPaletteOptions);
private init;
private collect;
private itemText;
private readonly onHotkey;
private onInputKeydown;
private applyFilter;
private move;
private setActive;
private selectItem;
/** Open the palette and focus the search input. */
openPalette(): void;
/** Close the palette and restore focus. */
close(): void;
toggle(): void;
get isOpen(): boolean;
/** Currently active (highlighted) item, or null. */
get activeItem(): HTMLElement | null;
/** Subscribe to a DOM event on the root element. Returns an unsubscribe fn. */
on(event: string, handler: (event: E) => void): () => void;
destroy(): void;
}