///
import * as ReactRouterDOM from 'react-router-dom';
import { type History as RemixHistory } from '@remix-run/router';
import { type BrowserRouterHistoryState } from './BrowserRouter';
/**
* data browser router history hooks
*/
export declare const useBrowserRouterHistory: () => History;
type ExtractContextValueType = C extends React.Context ? U : never;
type DataRouterContextObject = ExtractContextValueType;
type Listen = NonNullable['router']['subscribe'];
/**
* data browser router state
* @example history.listen((state: DataRouterHistoryState) => {})
*/
export type DataRouterHistoryState = Parameters[0]>[0];
/**
* router state when history change
* @example history.listen((state: RouterState) => {})
*/
export type RouterState = Partial & Partial & Pick;
/**
* history listener function type
*/
export type Listner = (listener: (state: RouterState) => void) => () => void;
type HistoryListen = {
listen: Listner;
};
/**
* compatible with `` and `createBrowserRouter` history
*/
export type History = Omit & HistoryListen;
export declare const useHistory: () => History;
export {};