Skip to content

AI-native design editor. Open-source Figma alternative.

1.3 KB
Raw Blame
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/vanillajs" />
/// <reference types="unplugin-icons/types/vue" />

interface ImportMetaEnv {
  /** `on` only in official release builds; without it the app sends no pings or usage stats. */
  readonly VITE_OPENPENCIL_FEEDBACK?: string
}

declare const __OPENPENCIL_APP_VERSION__: string
/** Whether this is the editor a Cloud server serves on its own address (`bun run build:cloud`). */
declare const __OPENPENCIL_CLOUD_SITE__: boolean
/** `VITE_OPENPENCIL_OFFICIAL_CLOUD_URL`: the official Cloud server an official deployment's build names. */
declare const __OPENPENCIL_OFFICIAL_CLOUD_URL__: string | null
/** The donation page `.github/FUNDING.yml` names first, or `null` when the build has none. */
declare const __OPENPENCIL_DONATION_URL__: string | null
declare const __OPENPENCIL_LOCAL_AUTOMATION_TOKEN__: string | null
declare const __OPENPENCIL_LOCAL_AUTOMATION_URL__: string
declare const __OPENPENCIL_LOCAL_AUTOMATION_HTTP_URL__: string

declare module '*.vue' {
  import type { DefineComponent } from 'vue'
  const component: DefineComponent<object, object, unknown>
  export default component
}

/** A module bundled with its imports into one classic script, as a string (`vite/inline-script.ts`). */
declare module '*?script' {
  const source: string
  export default source
}