UNPKG

881 BTypeScriptView Raw
1import { CLIFlags, PackageSourceLocal, PluginLoadResult, SnowpackConfig, SnowpackPlugin, SnowpackUserConfig } from './types';
2export declare const DEFAULT_PACKAGES_LOCAL_CONFIG: PackageSourceLocal;
3/**
4 * Convert CLI flags to an incomplete Snowpack config representation.
5 * We need to be careful about setting properties here if the flag value
6 * is undefined, since the deep merge strategy would then overwrite good
7 * defaults with 'undefined'.
8 */
9export declare function expandCliFlags(flags: CLIFlags): SnowpackUserConfig;
10export declare function validatePluginLoadResult(plugin: SnowpackPlugin, result: PluginLoadResult | string | void | undefined | null): void;
11export declare function createConfiguration(config?: SnowpackUserConfig): SnowpackConfig;
12export declare function loadConfiguration(overrides?: SnowpackUserConfig, configPath?: string): Promise<SnowpackConfig>;