import { RouterPush } from '../types/routerPush'; import { RouterReject } from '../types/routerReject'; import { RouterReplace } from '../types/routerReplace'; import { Routes } from '../types/route'; import { Rejections } from '../types/rejection'; import { RouteUpdate } from '../types/routeUpdate'; import { ResolvedRoute } from '../types/resolved'; /** * A function that can be called to abort a routing operation. */ export type CallbackContextAbort = () => void; type RouterCallbackContext = { reject: RouterReject; push: RouterPush; replace: RouterReplace; update: RouteUpdate>; abort: CallbackContextAbort; }; export declare function createRouterCallbackContext({ to }: { to: ResolvedRoute; }): RouterCallbackContext; export {};