/** * Created by tacb0ss on 27/07/2018. */ import { Module, Primitive, RecursiveArrayOfPrimitives, RecursiveObjectOfPrimitives } from '@nu-art/ts-common'; import { LocationDescriptorObject } from 'history'; import { ThunderDispatcher } from '../core/thunder-dispatcher.js'; type AdvancedQueryParam = Primitive | RecursiveObjectOfPrimitives | RecursiveArrayOfPrimitives; export declare class QueryParamKey { private readonly key; constructor(key: string); get(): T; set(value: T): void; update(value: T): void; delete(): void; } export type OnUrlParamsChangedListenerV2 = { __onUrlParamsChangedV2: VoidFunction; }; export declare const dispatcher_urlParamsChangedV2: ThunderDispatcher; export declare class ModuleFE_BrowserHistoryV2_Class extends Module { private readonly history; private state; constructor(); private decode; private encode; /** * Update and navigate according to query params */ push(push: LocationDescriptorObject): void; /** * Update query params */ replace(push: LocationDescriptorObject): void; update(queryParams: AdvancedQueryParam): void; set(key: string, queryParams: AdvancedQueryParam): void; setObject(object: RecursiveObjectOfPrimitives): void; get(key: string): Readonly; delete(key: string): void; setState: (state: RecursiveObjectOfPrimitives) => void; getState: () => Readonly; } export declare const ModuleFE_BrowserHistoryV2: ModuleFE_BrowserHistoryV2_Class; export {};