import { Plugin } from "vite"; //#region src/index.d.ts interface CjsInteropOptions { /** * List of CJS dependencies that require interoperability fixes. * Deep imports (`package/import`) should be specified separately but * globs (`package/*`) are supported. */ dependencies: string[]; /** * Whether to run the plugin for client builds. Normally it's only needed for SSR builds * but it can be sometimes useful to run it for library mode builds. * * @default false */ client?: boolean; /** * When to run the plugin. * * @default "both" */ apply?: "build" | "serve" | "both"; /** * Set to false for to workaround https://github.com/vitejs/vite/issues/22122. * * @deprecated Vite 8.0.6 fixed the issue. The plugin will automatically * detect if the Vite version is affected and apply the workaround if * necessary. Providing it manually will still override the automatic * detection but is now unnecessary and will be removed in the near future. * * @default true */ trustViteWithHoisting?: boolean; } declare function cjsInterop(options: CjsInteropOptions): Plugin; //#endregion export { CjsInteropOptions, cjsInterop }; //# sourceMappingURL=index.d.ts.map