import { History, Location } from 'history'; export declare const LOCATION_CHANGED = "$$event:location-changed"; export declare const LOCATION_PART_CHANGED = "$$event:location-part-changed"; export interface LocationValue { path: string; params: LocationParams; } export interface LocationParams { [key: string]: any; } export interface LocationParamsEncoder { encode(value: any): string; decode(value: string): any; } export interface HistoryUpdater { (state: any): void; (path: string, state?: any): void; } export declare function getHistoryUpdater(history: History, shouldUpdate?: Boolean): HistoryUpdater; export declare function locationToLocationValue(location: Location, encoder: LocationParamsEncoder): LocationValue; export declare function paramsFromSearch(search: string, encoder: LocationParamsEncoder): LocationParams; export declare function paramsToSearch(params: LocationParams, encoder: LocationParamsEncoder): string;