/** * Vite 8 Environment API configuration. * * Provides environment-specific resolve conditions and optimisation * settings for browser, server, and shader build targets. * * @module */ /** Named czap build environment. */ export type CzapEnvironmentName = 'browser' | 'server' | 'shader'; /** * Subset of a Vite `Environment` config that czap touches: resolve * conditions plus `optimizeDeps` include/exclude lists. Returned by * {@link getEnvironmentConfig} and merged into the host Vite config * via {@link buildEnvironments}. */ export interface CzapEnvironmentConfig { readonly resolve: { readonly conditions: string[]; readonly extensions: string[]; }; readonly optimizeDeps: { readonly include: string[]; readonly exclude: string[]; }; } /** * Get the Vite environment configuration for a specific czap target. */ export declare function getEnvironmentConfig(name: CzapEnvironmentName): CzapEnvironmentConfig; /** * Build the Vite environments configuration object from a list of * requested environment names. */ export declare function buildEnvironments(names: readonly CzapEnvironmentName[]): Record; //# sourceMappingURL=environments.d.ts.map