import type { BeachballOptions, ParsedOptions } from '../types/BeachballOptions'; import type { ChangeCommandContext, CommandContext } from '../types/CommandContext'; export type ValidateOptions = { /** * If true, check whether change files are needed (and whether change files are deleted). */ checkChangeNeeded?: boolean; /** * If true, don't error if change files are needed (just return `isChangeNeeded` true). * This is used by the `change` command. */ allowMissingChangeFiles?: boolean; /** * If true, validate that the dependencies of any packages with change files are valid * (not private). */ checkDependencies?: boolean; }; type ValidationResult = { /** True if change files are needed. Always false if `validateOptions.checkChangeNeeded` wasn't true. */ isChangeNeeded: boolean; /** * Context calculated during validation that can also be used by main command logic. * `bumpInfo` will only be set if `checkDependencies` was true and no changes were needed. * `changedPackages` will only be set if `checkChangeNeeded` was true. */ context: CommandContext & ChangeCommandContext; }; /** * Run validation of options, change files, and packages. Throws `BeachballError` if invalid. * If `validateOptions.checkChangeNeeded` is true, also check whether change files are needed. * @returns Various info retrieved during validation which is also needed by other functions. */ export declare function validate(parsedOptions: ParsedOptions, validateOptions: ValidateOptions): ValidationResult; /** @deprecated Use other signature */ export declare function validate(options: BeachballOptions, validateOptions?: ValidateOptions): ValidationResult; export {}; //# sourceMappingURL=validate.d.ts.map