UNPKG

1.42 kBTypeScriptView Raw
1import { ApiOptions } from './auto-args';
2import { ILabelDefinition } from './release';
3import { ILogger } from './utils/logger';
4declare type ConfigObject = any;
5/** Transform all types of label configuration into just 1 shape */
6export declare function normalizeLabel(label: Partial<ILabelDefinition>): Partial<ILabelDefinition>;
7/**
8 * Go through all the labels in a config and make them
9 * follow the same format.
10 */
11export declare function normalizeLabels(config: ConfigObject): ILabelDefinition[];
12/** Load a user's configuration from the system and resolve any extended config */
13export default class Config {
14 /** A logger that uses log levels */
15 logger: ILogger;
16 /** Initialize the config loader */
17 constructor(logger: ILogger);
18 /**
19 * Load the .autorc from the file system, set up defaults, combine with CLI args
20 * load the extends property, load the plugins and start the git remote interface.
21 */
22 loadConfig(args: ApiOptions): Promise<any>;
23 /**
24 * Loads a config from a path, package name, or special `auto-config` pattern
25 *
26 * ex: auto-config-MY_CONFIG
27 * ex: @MY_CONFIG/auto-config
28 *
29 * @param extend - Path or name of config to find
30 */
31 loadExtendConfig(extend: string): Promise<any>;
32 /** Ensure a user's config is not using deprecated options. */
33 private checkDeprecated;
34}
35export {};
36//# sourceMappingURL=config.d.ts.map
\No newline at end of file