import { Path, LocationDescriptorObject, History as _H } from 'history-with-query'; /** * as-layout-app 修改后的 History。会被其设置为 window.history */ export interface HookedHistory extends _H { push: (path: Path | LocationDescriptorObject) => void; } export declare type LocationHistory = LocationDescriptorObject & { to?: string; blank?: boolean; }; export declare type LinkPath = LocationHistory | Path; export declare function setHistory(nextHistory: HookedHistory): void; export declare function getHistory(): HookedHistory; declare type Optional = Omit & Partial>; export declare function goToLink(link: LinkPath, history?: Optional): void; export {};