declare namespace PageRoute {
  /**
   * the root route key
   * @translate 根路由
   */
  type RootRouteKey = 'root';

  /**
   * the not found route, which catch the invalid route path
   * @translate 未找到路由(捕获无效路径的路由)
   */
  type NotFoundRouteKey = 'not-found';

  /**
   * the route key
   * @translate 页面路由
   */
  type RouteKey =
    | '403'
    | '404'
    | '500'
    | 'login'
    | 'not-found'
    | 'about'
    | 'archives'
    | 'archives_students'
    | 'archives_students_component'
    | 'dashboard'
    | 'dashboard_workbench'
    | 'exception'
    | 'exception_403'
    | 'exception_404'
    | 'exception_500'
    | 'group'
    | 'group_classroom'
    | 'group_group'
    | 'group_student'
    | 'lesson'
    | 'lesson_attendance'
    | 'lesson_calendar'
    | 'lesson_checkin'
    | 'lesson_schedule'
    | 'lesson_score'
    | 'system'
    | 'system_auth'
    | 'system_category'
    | 'system_profile'
    | 'system_role'
    | 'system_student'
    | 'system_subject'
    | 'system_user';

  /**
   * last degree route key, which has the page file
   * @translate 最后一级路由(该级路有对应的页面文件)
   */
  type LastDegreeRouteKey = Extract<
    RouteKey,
    | '403'
    | '404'
    | '500'
    | 'login'
    | 'not-found'
    | 'about'
    | 'archives_students_component'
    | 'archives_students'
    | 'dashboard_workbench'
    | 'exception_403'
    | 'exception_404'
    | 'exception_500'
    | 'group_classroom'
    | 'group_group'
    | 'group_student'
    | 'lesson_attendance'
    | 'lesson_calendar'
    | 'lesson_checkin'
    | 'lesson_schedule'
    | 'lesson_score'
    | 'system_auth'
    | 'system_category'
    | 'system_profile'
    | 'system_role'
    | 'system_student'
    | 'system_subject'
    | 'system_user'
  >;
}
