export type SearchSort = | 'price_desc' | 'price_asc' | 'orders_desc' | 'name_desc' | 'name_asc' | 'release_desc' | 'discount_desc' | 'score_desc' export interface Facet { key: string value: string } export interface State { /** @description search sorting criteria */ sort: SearchSort /** * @description selected facets * */ selectedFacets: Facet[] /** @description full text term */ term: string | null /** * @description the base path url for the search context * */ base: string /** * @description current pagination cursor */ page: number /** * @description params from other sources to preserve when building URLs */ passThrough: URLSearchParams }