import type { PropType } from "vue"; import type { Style } from "../../core/types.js"; export type TCommandPaletteMatchRange = Readonly<{ start: number; end: number; }>; export type TCommandPaletteItem = Readonly<{ kind?: "item" | "separator" | "group"; label: string; detail?: string; keywords?: readonly string[]; disabled?: boolean; disabledReason?: string; value?: unknown; accentStyle?: Style; highlightAccentStyle?: Style; labelAccentRanges?: readonly TCommandPaletteMatchRange[]; labelAccentSegments?: readonly Readonly<{ start: number; end: number; style?: Style; highlightStyle?: Style; }>[]; detailAccentRanges?: readonly TCommandPaletteMatchRange[]; detailAccentSegments?: readonly Readonly<{ start: number; end: number; style?: Style; highlightStyle?: Style; }>[]; [key: string]: unknown; }>; export type TCommandPaletteMatcherResult = Readonly<{ score: number; labelRanges?: readonly TCommandPaletteMatchRange[]; detailRanges?: readonly TCommandPaletteMatchRange[]; }>; export type TCommandPaletteMatcher = (item: TCommandPaletteItem, query: string) => TCommandPaletteMatcherResult | null; export type TCommandPaletteItemsProvider = (query: string, ctx: { signal: AbortSignal; }) => Promise; export type TCommandPaletteLoadErrorPayload = Readonly<{ query: string; error: unknown; }>; export type TCommandPaletteSelectPayload = Readonly<{ item: TCommandPaletteItem; index: number; sourceIndex: number; query: string; source: "keyboard" | "pointer"; }>; export declare function computeCommandPaletteMatchRanges(text: string, query: string): TCommandPaletteMatchRange[]; export declare const TCommandPalette: import("vue").DefineComponent; default: () => never[]; }; itemsProvider: { type: PropType; default: undefined; }; matcher: { type: PropType; default: undefined; }; filterStrategy: { type: PropType<"substring" | "fuzzy">; default: string; }; selectedIndex: { type: NumberConstructor; default: undefined; }; showRowDetails: { type: BooleanConstructor; default: boolean; }; placeholder: { type: StringConstructor; default: string; }; noMatchesText: { type: StringConstructor; default: string; }; loadingText: { type: StringConstructor; default: string; }; errorText: { type: StringConstructor; default: string; }; hint: { type: StringConstructor; default: string; }; debounce: { type: NumberConstructor; default: number; }; minQueryLength: { type: NumberConstructor; default: number; }; maxVisibleItems: { type: NumberConstructor; default: undefined; }; closeOnSelect: { type: BooleanConstructor; default: boolean; }; resetQueryOnClose: { type: BooleanConstructor; default: boolean; }; w: { type: NumberConstructor; default: number; }; h: { type: NumberConstructor; default: number; }; chromeStyle: { type: PropType