1 | import { ILabelDefinition } from "./release";
|
2 | import { ILogger } from "./utils/logger";
|
3 | declare type ConfigObject = any;
|
4 |
|
5 | export declare function normalizeLabel(label: Partial<ILabelDefinition>): Partial<ILabelDefinition>;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare function normalizeLabels(config: ConfigObject): ({
|
11 | changelogTitle?: string | undefined;
|
12 | color?: string | undefined;
|
13 | description?: string | undefined;
|
14 | releaseType?: "none" | import("./semver").default.major | import("./semver").default.minor | import("./semver").default.patch | "skip" | "release" | undefined;
|
15 | overwrite?: boolean | undefined;
|
16 | } & {
|
17 | name: string;
|
18 | })[];
|
19 |
|
20 | export default class Config {
|
21 |
|
22 | logger: ILogger;
|
23 |
|
24 | constructor(logger: ILogger);
|
25 | /**
|
26 | * Load the .autorc from the file system, set up defaults, combine with CLI args
|
27 | * load the extends property, load the plugins and start the git remote interface.
|
28 | */
|
29 | loadConfig(): Promise<any>;
|
30 | /**
|
31 | * Loads a config from a path, package name, or special `auto-config` pattern
|
32 | *
|
33 | * ex: auto-config-MY_CONFIG
|
34 | * ex: @MY_CONFIG/auto-config
|
35 | *
|
36 | * @param extend - Path or name of config to find
|
37 | */
|
38 | loadExtendConfig(extend: string): Promise<any>;
|
39 | /** Ensure a user's config is not using deprecated options. */
|
40 | private checkDeprecated;
|
41 | }
|
42 | export {};
|
43 |
|
\ | No newline at end of file |