import { SearchQuery } from '@orderlyshop/core-client';

declare const declarativeQueryAttributes: string[];
interface SearchQueryInput {
    query?: string;
    keywords?: string;
    hiddenQuery?: string;
    tags?: string[];
    orderBy?: string[];
    storeId?: string;
    featured?: boolean;
}
type SearchQueryConfig = SearchQuery | SearchQueryInput;
/**
 * Creates a Core SearchQuery from plain JavaScript values.
 *
 * This is mainly useful for vanilla browser setups that load the standalone
 * bundle and do not want to import protobuf helpers directly.
 */
declare function createSearchQuery(input?: SearchQueryInput): SearchQuery;
declare function normalizeSearchQuery(input?: SearchQueryConfig): SearchQuery;
/**
 * Builds a SearchQuery from simple HTML configuration.
 *
 * Supported on product grids, product rails, and collection pages. Typed
 * JavaScript `query` properties take precedence in the components; this helper
 * only covers the common declarative fields that are safe to express as text.
 */
declare function declarativeSearchQuery(host: Element): SearchQuery | undefined;

export { type SearchQueryConfig, type SearchQueryInput, createSearchQuery, declarativeQueryAttributes, declarativeSearchQuery, normalizeSearchQuery };
