interface IOnCanCache { (params: { prevPathname: string; pathname: string; }): boolean | (() => string[]); } export interface IParams { routes: Array[]; type?: 'default' | 'custom'; onCanCache?: IOnCanCache; } declare function useKeepAlive({ type, routes, onCanCache, }: IParams): void; export default useKeepAlive;