import { Match } from './utils'; import { Location } from 'history'; export declare type RouterStoreState = { location: Location; match: Match; switch: false | { match: Match; matchIndex: number | false; }; }; export declare class Store { private listeners; private state; constructor(initialState: State); setState(newState: State): this; broadcast(state: State): void; getState(): State; subscribe(listener: (state: State) => void): () => void; }