import { ScaffoldConfig } from "./scaffold-config-89bf34d2"; import { LogLevelKind } from "./log-level-kind-cda6b787"; import { ILogger } from "./i-logger-a4b31ba7"; import { FindLicenseOptions } from "./find-license-options-16ec709b"; import { LicenseName } from "./license-name-2ed222d8"; import { Package } from "./package-16ec709b"; import { FindConfigOptions } from "./find-config-options-990f1934"; /** * This object holds all of the default config options for a ScaffoldConfig * @type {Promise} */ declare const DEFAULT_SCAFFOLD_CONFIG: Promise; /** * A logger that can print to the console */ declare class Logger implements ILogger { private readonly logLevel; private readonly INFO_COLOR; private readonly VERBOSE_COLOR; private readonly WARNING_COLOR; private readonly DEBUG_COLOR; constructor(logLevel: LogLevelKind); /** * Logs info-related messages */ info(...messages: string[]): void; /** * Logs verbose-related messages */ verbose(...messages: string[]): void; /** * Logs debug-related messages */ debug(...messages: string[]): void; /** * Logs warning-related messages */ warn(...messages: string[]): void; } /** * A function that extracts all property names from the given enumeration. * * @param enumeration * @returns */ declare function getValuesForEnum(enumeration: T): T[keyof T][]; /** * A function that extracts all property names from the given enumeration. * * @param enumeration * @returns */ declare function getKeysForEnum(enumeration: T): (keyof T)[]; /** * Finds the project license from the given root directory. * It may be listed in the package.json file, or it may exist within the root as a LICENSE.md file already * * @param options * @returns */ declare function findLicense({ logger, root, fs, pkg }: FindLicenseOptions): Promise; /** * Detects the license of the given text, if possible * * @param text * @returns */ declare function detectLicense(text: string): LicenseName | undefined; declare const stringTuple: (...args: T) => T; /** * Formats the given iterable of strings in a list format (in the English locale) */ declare function listFormat(elements: Iterable, andOrOr: "and" | "or", mapper?: (element: string) => string): string; interface FindPackageResult { pkg: Package; root: string; } /** * Gets a ScaffoldConfig. Will attempt to resolve a config and fall back to defaults * if no such config could be found * * @type {FindConfigOptions} options * @returns */ declare function getConfig(options: FindConfigOptions): Promise; export { DEFAULT_SCAFFOLD_CONFIG, Logger, getValuesForEnum, getKeysForEnum, findLicense, detectLicense, stringTuple, listFormat, FindPackageResult, getConfig }; //# sourceMappingURL=get-config-e56c50f6.d.ts.map