import { b as LoadConfigSource, B as BuiltinParsers, C as CustomParser } from './shared/unconfig.e8f60d5d.js'; import { Arrayable } from '@antfu/utils'; interface SourceVitePluginConfigOptions { plugins: Arrayable; /** * Parameters that passed to when the default export is a function */ parameters?: any[]; } interface SourceObjectFieldOptions extends Omit { fields: Arrayable; /** * Parameters that passed to when the default export is a function */ parameters?: any[]; } interface SourcePluginFactoryOptions extends Omit { targetModule: string; /** * Parameters that passed to when the default export is a function */ parameters?: any[]; } /** * Rewrite the config file and extract the options passed to plugin factory * (e.g. Vite and Rollup plugins) */ declare function sourcePluginFactory(options: SourcePluginFactoryOptions): { transform: (source: string) => string; targetModule: string; /** * Parameters that passed to when the default export is a function */ parameters?: any[] | undefined; rewrite?: ((obj: F, filepath: string) => any) | undefined; files: Arrayable; extensions?: string[] | undefined; parser?: BuiltinParsers | "auto" | CustomParser | undefined; skipOnError?: boolean | undefined; }; declare function sourceVitePluginConfig(options: SourceVitePluginConfigOptions): LoadConfigSource; /** * Get one field of the config object */ declare function sourceObjectFields(options: SourceObjectFieldOptions): LoadConfigSource; /** * Get one field of `package.json` */ declare function sourcePackageJsonFields(options: Pick): LoadConfigSource; export { type SourceObjectFieldOptions, type SourcePluginFactoryOptions, type SourceVitePluginConfigOptions, sourceObjectFields, sourcePackageJsonFields, sourcePluginFactory, sourceVitePluginConfig };