import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";

// 样式
import "@unocss/reset/tailwind.css";
import "virtual:uno.css";
import "./styles/main.scss";
import "markstream-vue/index.css";

// 创建应用
const app = createApp(App);

// 使用 Pinia
const pinia = createPinia();
app.use(pinia);

// 挂载应用
app.mount("#app");

// 类型声明
declare global {
  interface Window {
    $toast: (message: string, type?: "success" | "error" | "info") => void;
  }
}
