import { QueryBuilderOutput, QueryBuilderProcessor, QueryBuilderSuggestionMenuOption } from './useQueryBuilder'; import { PvSize } from '../baseProps'; import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; export interface PvQueryBuilderInputProps { /** * Placeholder text shown in the input when no query is active. */ placeholder?: string; /** * When true, the input is non-interactive and visually dimmed. */ disabled?: boolean; /** When true, displays a keyboard shortcut badge next to the input. */ displayShortcut?: boolean; /** * Determines how user input is parsed into structured query terms. * - `'full'`: free-text and field-based queries. * - `'field-only'`: only options with a queryField are shown. */ processor?: QueryBuilderProcessor; /** * When true, shows a loading spinner in the suggestion dropdown. */ optionsLoading?: boolean; /** Matches PvSearchInput sizing. */ size?: Extract; /** * When true, users can press Enter to add free-text terms without selecting a suggestion. */ enableCustomOptionsInput?: boolean; /** * When true, hides the search icon on the left side of the input. */ hideSearchIcon?: boolean; /** * When true, hides the clear button that resets the query. */ hideClearButton?: boolean; /** * Maximum number of query term pills to display before collapsing. */ queryTermDisplayLimit?: number; /** * When true, query term pills wrap to the next line instead of scrolling horizontally. */ enableWrapQueryTerms?: boolean; } type __VLS_Props = PvQueryBuilderInputProps; type __VLS_PublicProps = { "searchText"?: string; "query": QueryBuilderOutput | null; "options"?: QueryBuilderSuggestionMenuOption[]; } & __VLS_Props; declare function __VLS_template(): { attrs: Partial<{}>; slots: { header?(_: {}): any; footer?(_: {}): any; empty?(_: {}): any; }; refs: { 'query-builder-input': HTMLDivElement; 'search-input': HTMLInputElement; }; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:options": (value: QueryBuilderSuggestionMenuOption[]) => any; "update:searchText": (value: string) => any; "update:query": (value: QueryBuilderOutput | null) => any; }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ "onUpdate:options"?: ((value: QueryBuilderSuggestionMenuOption[]) => any) | undefined; "onUpdate:searchText"?: ((value: string) => any) | undefined; "onUpdate:query"?: ((value: QueryBuilderOutput | null) => any) | undefined; }>, { size: Extract; disabled: boolean; placeholder: string; queryTermDisplayLimit: number; processor: QueryBuilderProcessor; optionsLoading: boolean; enableCustomOptionsInput: boolean; hideSearchIcon: boolean; hideClearButton: boolean; enableWrapQueryTerms: boolean; }, {}, {}, {}, string, ComponentProvideOptions, false, { 'query-builder-input': HTMLDivElement; 'search-input': HTMLInputElement; }, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };