2026-07-04 22:51:52 +08:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
|
|
|
|
|
declare module "*.vue" {
|
|
|
|
|
import type { DefineComponent } from "vue"
|
|
|
|
|
|
|
|
|
|
const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>
|
|
|
|
|
export default component
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface Window {
|
|
|
|
|
AstrBotPluginPage?: {
|
2026-07-06 09:45:13 +08:00
|
|
|
ready?(): Promise<void>
|
2026-07-04 22:51:52 +08:00
|
|
|
apiGet<T>(path: string, params?: Record<string, unknown>): Promise<T>
|
|
|
|
|
apiPost<T>(path: string, body?: unknown): Promise<T>
|
|
|
|
|
apiPut<T>(path: string, body?: unknown): Promise<T>
|
|
|
|
|
apiPatch<T>(path: string, body?: unknown): Promise<T>
|
|
|
|
|
apiDelete<T>(path: string): Promise<T>
|
|
|
|
|
}
|
|
|
|
|
}
|