/// <reference types="vite/client" />

declare module '*.vue' {
  import { DefineComponent } from 'vue'
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
  const component: DefineComponent<{}, {}, any>
  export default component
}

declare namespace wx {
  interface OpenPrivacyContractOption {
    success?: (res: any) => void
    fail?: (err: any) => void
    complete?: (res: any) => void
    chooseMessageFile?: (res: any) => void
  }
  interface Env {
    USER_DATA_PATH: string
  }
  const env: Env
  function openPrivacyContract(options: OpenPrivacyContractOption): void
}
