import { Plugin } from "vite"; //#region src/plugin.d.ts type ViteEnvOptions = { /** * Path to env definition file. * @default './env.ts' (resolved from project root) */ configFile?: string; /** * Vite 8 environment names that are allowed to import virtual:env/server. * Use this to allow edge runtimes (Cloudflare Workers → 'workerd', Deno Deploy → 'ssr'). * @default ['ssr'] */ serverEnvironments?: string[]; /** * Behavior when virtual:env/server is imported from a disallowed environment. * * - 'warn' — Deprecation warning printed to terminal + vite-env-warnings.log written. * Build succeeds but exits with code 1. Default in 0.x releases. * The default will change to 'error' in 1.0.0. * * - 'error' — Hard build error. No artifacts emitted. * * - 'stub' — Returns a module that throws at runtime if the import executes. * Use for testing environments (Vitest jsdom) or framework isomorphic files * where the import exists but the code path is never reached in a server context. * * @default 'warn' */ onClientAccessOfServerModule?: "error" | "stub" | "warn"; }; declare function ViteEnv(options?: ViteEnvOptions): Plugin; //#endregion export { ViteEnvOptions, ViteEnv as default }; //# sourceMappingURL=plugin.d.mts.map