import type { InlineConfig, ResolvedConfig } from 'vite';
import type { Context } from '../context.js';
/**
 * Applies the user's `vite` histoire option on top of a Vite config and
 * normalizes the resulting plugin list.
 *
 * Plugins are flattened (a plugin option can be a nested and/or async array)
 * before `viteIgnorePlugins` is applied, so ignoring by name works regardless
 * of how the plugin was declared.
 * Accepts an already-resolved Vite config too (the one the context is built
 * from): only its plugin list is rewritten, everything else is passed through,
 * which is why the input type is handed back to the caller.
 * @param inputConfig The config to extend.
 * @param ctx The histoire context.
 */
export declare function mergeHistoireViteConfig<T extends InlineConfig | ResolvedConfig>(inputConfig: T, ctx: Context): Promise<T>;
//# sourceMappingURL=merge-config.d.ts.map