import type { Plugin } from 'vite'; /** Options for {@link writeIfChanged}. */ export interface WriteIfChangedPluginOptions { /** * Output directory to resolve emitted chunk file names against. Only * consulted when Rollup's own `output.dir` isn't set on the build. */ readonly outDir?: string; } /** * Vite plugin that only writes bundle files if content changed, avoiding * file-watcher/HMR churn on a byte-identical rebuild. Uses `writeBundle` * not `generateBundle`: Rolldown can't mutate the bundle, so the write * happens after Rollup's own write step. */ export declare function writeIfChanged(options?: WriteIfChangedPluginOptions): Plugin;