1 | import { RouterHistory } from '../global/interfaces';
|
2 | export interface CreateBrowserHistoryOptions {
|
3 | getUserConfirmation?: (message: string, callback: (confirmed: boolean) => {}) => {};
|
4 | forceRefresh?: boolean;
|
5 | keyLength?: number;
|
6 | basename?: string;
|
7 | }
|
8 | /**
|
9 | * Creates a history object that uses the HTML5 history API including
|
10 | * pushState, replaceState, and the popstate event.
|
11 | */
|
12 | declare const createBrowserHistory: (win: Window, props?: CreateBrowserHistoryOptions) => RouterHistory;
|
13 | export default createBrowserHistory;
|