import { Ref } from 'vue'
import { RouteLocationNormalized } from 'vue-router'

export type RoleType = '' | '*' | 'admin' | 'user'
export interface UserInfo {
  username: string
  userId?: string
}
export interface UserState {
  userInfo: UserInfo | null
  token?: string
  permissionsList?: Array<string>
  router?: RouteLocationNormalized
}
