import React from 'react'; export declare type WindowInternal = Window & { CustomEvent?: new (typeArg: string, eventInitDict?: CustomEventInit) => CustomEvent; Event: typeof Event; }; declare type InitCustomEventParams = { bubbles: boolean; cancelable: boolean; detail: T; }; export declare const CreateEvent: (windowInternal: WindowInternal, documentInternal: Document) => (event: string, params: InitCustomEventParams) => CustomEvent; declare type WindowHistoryState = typeof window.history.state; export interface ReactOidcHistory { push: (url?: string | null, stateHistory?: WindowHistoryState) => void; } export declare const useHistory: () => { push: (url?: string, stateHistory?: any) => void; }; export declare const withRouter: (windowInternal: WindowInternal, CreateEventInternal: (event: string, params?: InitCustomEventParams) => CustomEvent, generateKeyInternal: () => string) => (Component: React.ComponentType<{}>) => (props: any) => JSX.Element; declare const _default: (Component: React.ComponentType<{}>) => (props: any) => JSX.Element; export default _default; //# sourceMappingURL=withRouter.d.ts.map