import { YLocation, Route, HistoryState } from './router.interface'; type ActionType = 'goto' | 'push' | 'replace' | 'pop' | 'register' | 'update_current' | 'update_changed' | 'clean_history' | 'get_routes' | 'update_historyRoute'; export interface RouterAction { type: ActionType; payload: { data: any; }; } export interface RouterHistory { title: string; path: string; parentPath: string; grandPath?: string; url: string; } export interface RouterState { history: string[]; current: YLocation; routes: Route; currentRute?: HistoryState; currentPath?: string; historyRoute: Record>; }