import { XStoreModule } from '../../../store' ; import { UrlParams } from '../../../types/url-params' ; public export interface SearchBoxState { /** The query of the search box input. */ query : string ; } public export interface SearchBoxGetters { /** The query without initial or ending spaces. */ trimmedQuery : string ; } public export interface SearchBoxMutations { param newQuery setQuery ( newQuery ) : void ; } public export interface SearchBoxActions { param urlParams setUrlParams ( urlParams ) : void ; } public export type SearchBoxXStoreModule = XStoreModule < SearchBoxState , SearchBoxGetters , SearchBoxMutations , SearchBoxActions > ;