import type { InputEvent } from "../../input/event.ts"; import type { Component } from "../../runtime/component.ts"; import { type SelectListTheme } from "../select-list/component.ts"; export interface CommandPaletteItem { readonly id: string; readonly label: string; readonly description?: string; } export interface CommandPaletteTheme { readonly border?: (text: string) => string; readonly title?: (text: string) => string; readonly hint?: (text: string) => string; readonly list?: SelectListTheme; } export interface CommandPaletteOptions { readonly items: readonly CommandPaletteItem[]; readonly query?: string; readonly title?: string; readonly hint?: string; readonly maxVisibleRows?: number; readonly theme?: CommandPaletteTheme; readonly onSelect?: (item: CommandPaletteItem) => void; readonly onCancel?: () => void; } export declare class CommandPalette implements Component { private readonly list; private readonly title; private readonly hint; private readonly theme; private readonly onSelect?; constructor(options: CommandPaletteOptions); setItems(items: readonly CommandPaletteItem[]): void; setQuery(query: string): void; handleInput(event: InputEvent): boolean | void; render(width: number, height?: number): string[]; private styleBorder; private styleTitle; private styleHint; } //# sourceMappingURL=component.d.ts.map