import { createPinia } from 'pinia';
import { createPersistedState } from 'pinia-plugin-persistedstate';
const pinia = createPinia();
pinia.use(createPersistedState());

export default pinia;

// 显式导出以避免命名冲突
export { useDictStore } from './modules/dict';
export { useUserStore, type UserInfo as UserInfoType, type UserProfile } from './modules/user';
export { useAuthStore, type LoginForm, type LoginResponse } from './modules/auth';
export { useInfoStore } from './modules/info';
