declare interface ImportMetaEnv { readonly MODE: string readonly VITE_APP_TITLE: string readonly VITE_BASE_API: string readonly VITE_ROUTER_HISTORY: 'hash' | 'html5' readonly VITE_PUBLIC_PATH: string readonly VITE_HOST_IP: string readonly VITE_VIDEO_PORT: string readonly VITE_HEART_BEAT_PORT: string } interface ImportMeta { readonly env: ImportMetaEnv } /** WFS 播放器类型声明 */ interface WfsStatic { isSupported(): boolean Events: { ERROR: string MANIFEST_PARSED: string [key: string]: string } ErrorTypes: { MEDIA_ERROR: string NETWORK_ERROR: string [key: string]: string } new (config?: Record): WfsInstance } interface WfsInstance { attachMedia(video: HTMLVideoElement, channel: string, codec: string, url: string): void on(event: string, callback: (...args: any[]) => void): void off(event: string, callback: (...args: any[]) => void): void destroy(): void } interface Window { Wfs: WfsStatic } declare module '*.vue' { import { DefineComponent } from 'vue' const component: DefineComponent<{}, {}, any> export default component }