UNPKG

histoire

Version:

A fast story book powered by Vite

19 lines • 1.03 kB
import type { ConfigMode, HistoireConfig, PluginConfigContext } from '@histoire/shared'; import type { ConfigurationObserver } from './dependencies.js'; export { configFileNames, resolveConfigFile } from '@histoire/dev-proxy/config'; /** Returns the plugin array captured before defaults and plugin hooks run. */ export declare function getPluginConfigSource(config: HistoireConfig): { source: string; plugins: HistoireConfig['plugins']; }; /** * Imports a config file through jiti (so TypeScript configs work) and returns * its default export. */ export declare function loadConfigFile(configFile: string): Promise<Partial<HistoireConfig>>; /** * Resolves the final Histoire config: the config file, the `histoire` key of * the Vite config and the (plugin-processed) defaults, merged in that order. */ export declare function resolveConfig(cwd: string, mode: ConfigMode, configFile?: string, context?: PluginConfigContext, onInputs?: ConfigurationObserver): Promise<HistoireConfig>; //# sourceMappingURL=load.d.ts.map