import prompts from 'prompts'; import type { ChangeFileInfo, ChangeType } from '../types/ChangeInfo'; import type { BeachballOptions } from '../types/BeachballOptions'; import type { PackageGroups, PackageInfos } from '../types/PackageInfo'; export type ChangePromptResponse = { type?: ChangeType; comment?: string; }; /** * Uses `prompts` package to prompt for change type and description. * (For easier testing, this function does not handle filesystem access.) */ export declare function promptForChange(params: { changedPackages: string[]; packageInfos: PackageInfos; packageGroups: PackageGroups; recentMessages: string[]; email: string | null; options: Pick; }): Promise; /** * Do the actual prompting. * @internal exported for testing */ export declare function _promptForPackageChange(questions: prompts.PromptObject[], pkg: string): Promise; /** * Validate/update the response from the user and return the full change file info. * @internal exported for testing */ export declare function _getChangeFileInfoFromResponse(params: { response: ChangePromptResponse; pkg: string; email: string | null; options: Pick; }): ChangeFileInfo | undefined; //# sourceMappingURL=promptForChange.d.ts.map