declare type LeaveAction = () => void; export declare class Context { ctx: Record; hasCompleted: boolean; leaveActions: LeaveAction[]; routePattern: string; hash: string; host: string; hostname: string; href: string; origin: string; pathname: string; port: string; protocol: string; search: string; params: Record; query: Record; runOnLeave(): void; onLeave(cb: LeaveAction): void; end(): void; unmount(..._args: any): void | Promise; mount(..._args: any): void | Promise; redirect(path: string): void | Promise; } export {};