/** * Created by tacb0ss on 27/07/2018. */ import { Module } from '@nu-art/ts-common'; import { History, LocationDescriptorObject } from 'history'; import { UrlQueryParams } from '../../shared/index.js'; import { ThunderDispatcher } from '../core/thunder-dispatcher.js'; export type OnUrlParamsChangedListener = { __onUrlParamsChanged: VoidFunction; }; export declare const dispatcher_urlParamsChanged: ThunderDispatcher; export declare class ModuleFE_BrowserHistory_Class extends Module { private readonly history; constructor(); /** * Update and navigate according to query params */ push(push: LocationDescriptorObject): void; /** * Update query params */ replace(push: LocationDescriptorObject): void; private composeQuery; private getEncodedQueryParams; getQueryParams(): UrlQueryParams; setQuery(queryParams: UrlQueryParams): void; addQueryParam(key: string, value: string): void; removeQueryParam(key: string): void; setUrl(url: string, queryParams?: UrlQueryParams): void; private createHistoryDataFromQueryParams; private updateQueryParams; getOrigin(): string; getCurrent(): import("history").Location; getHistory(): History; getQueryParameter(key: string): string | null | undefined; getCurrentUrl(): string; } export declare function getCurrentUrl(): string; export declare function getQueryParameter(name: string): string | null | undefined; export declare function getUrlQuery(): UrlQueryParams; export declare function encodeUrlParams(queryParams?: UrlQueryParams): { [key: string]: string | undefined; }; export declare function composeQuery(queryParams?: UrlQueryParams): string; export declare function composeURL(url: string, queryParams?: UrlQueryParams): string; export declare const ModuleFE_BrowserHistory: ModuleFE_BrowserHistory_Class;