/** * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS FOR HELPER FUNCTIONS THAT DO NOT REQUIRE ADDITIONAL IMPORTS * SO THAT THEY CAN BE USED WITHOUT TRIGGERING ADDITIONAL IMPORTS * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ export declare function setSearchTerms(terms: string, instanceId: string): void; export declare function getCurrentURLSearchParamsFromWindow(): URLSearchParams; export declare function getCurrentURLHashFromWindow(): string; export declare function parseSearchTerms(searchParams: URLSearchParams, instanceId: string): string; export declare function parseActiveGroup(searchParams: URLSearchParams, instanceId: string): string; export declare function isSearchActive(searchParams: URLSearchParams, instanceId: string): boolean; export declare function getCurrentSearchTermsFromWindow(instanceId: string): string; export declare function getCurrentGroupFromWindow(instanceId: string): string; export declare function getIsSearchActiveFromWindow(instanceId: string): boolean; /** * Sets hash value for group without adding entry to the history, * Used for opening the search UI in a group view */ export declare function setGroupIdOnWindow(id: string, instanceId: string): void; export declare function getGroupLinkFromWindow(options: { id: string; terms: string; instanceId: string; }): string; export declare function getGrouppedResultsLinkFromWindow(instanceId: string): string; /** * Pushes the url passed to history api, * @param url: string */ export declare function historyPushState(url: string): void; /** * Pushes the url passed to history api without creating a new entry * @param url: string */ export declare function historyReplaceState(url: string): void; export declare function dispatchValuSearchHistoryEvent(): void; /** * Helper function for opening Valu Search. * Handles history api calls for you. * Allows optional searchTerms param, otherwise reads currentSearchTerm */ export declare function open(options: { searchTerms?: string; instanceId: string; }): void; export declare function removeVSQueryParams(params: URLSearchParams, instanceId: string): URLSearchParams; export declare function clearVSQueryParamsOnWindow(instanceId: string): void; export declare function getInnerLinkFromWindow(params: { searchTerms?: string; groupId?: string; instanceId: string; }): string; export declare function isValuSearchOpenOnWindow(): boolean;