import { HistoryState, Location, PathRecord, State, Key, Blocker, Path } from '../types'; import { Events } from './misc'; export declare function createLocation(to: PathRecord, { basename, state, key, redirectedFrom }?: { basename?: string; state?: State; key?: Key; redirectedFrom?: Path; }): Location; export declare function pushState(state: HistoryState, url?: string, { replace }?: { replace?: boolean; }): void; export declare function replaceState(state: HistoryState, url?: string): void; export declare function addBlocker(blockers: Events, blocker: Blocker): () => void;