export interface BasePluginOptions { /** * The main entry point to use. * Defaults to the one from your Rolldown configuration. * @default undefined */ main?: string; /** * The compatibility date to use. This is optional, but should be defined to avoid unexpected behavior. * @default undefined */ compatibilityDate?: string; /** * The compatibility flags to enable. * @default [] * @example * ```ts * cloudflare({ compatibilityDate: "2026-04-01", compatibilityFlags: ["nodejs_compat"] }); * ``` */ compatibilityFlags?: Array; /** * The exports to include in the bundle. * By default, all exports are included. However, if you only want to include certain exports, you can use this option. * @example * ```ts * cloudflare({ exports: ["default"] }); * ``` */ exports?: Array; /** * Which Vite environment hosts the Worker, and any child environments it * loads at runtime. Defaults to the single `ssr` environment. * * `@vitejs/plugin-rsc` apps run the Worker in the `rsc` environment (resolved * with the `react-server` condition) and load the `ssr` environment from it, * so they set `{ name: "rsc", childEnvironments: ["ssr"] }`. Every named * environment is given the Worker treatment (workerd resolve conditions, * dependency pre-bundling) and a module runner in dev. * * @default { entry: "ssr", children: [] } */ viteEnvironments?: { entry?: string; children?: Array; }; /** * Vite environment names that must be left untouched by the Cloudflare * plugins. Frameworks can add Node-side server environments to the same dev * server or builder (e.g. Astro's `astro` and `prerender` environments), and * applying the Worker treatment (unenv polyfills, workerd resolve * conditions, dependency pre-bundling) to them breaks their Node runtime. * * The `client` environment is always excluded and does not need to be * listed here. * * @default [] * @example * ```ts * cloudflare({ viteEnvironments: { entry: "ssr" }, skipEnvironments: ["astro", "prerender"] }); * ``` */ skipEnvironments?: Array; } /** * Whether the named Vite environment must be left untouched by the Cloudflare * plugins — the browser `client` environment, plus anything the user listed in * {@link BasePluginOptions.skipEnvironments}. */ export declare const isSkippedEnvironment: (options: BasePluginOptions, name: string) => boolean; export declare const parseViteEnvironments: (options: BasePluginOptions) => [string, ...Array]; //# sourceMappingURL=options.d.ts.map