/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { CommandLogger } from "./logging.js"; import type { ReleaseGroup, ReleasePackage } from "./releaseGroups.js"; /** * An instructional prompt to display to a user in a terminal. A prompt can have any number of sections, and each * section is meant to be shown sequentially to provide step-by-step instructions. */ export interface InstructionalPrompt { /** * The title of the prompt. */ title: string; /** * An array of sections that comprise the prompt. */ sections: Section[]; } /** * A section of an {@link InstructionalPrompt}. */ interface Section { /** * The title of the section. */ title: string; /** * The instructional message to be displayed in the section. */ message: string; /** * An optional command string that will be displayed with the instructions. */ cmd?: string; } /** * Map release groups to ADO pipeline */ export declare const ADOPipelineLinks: Map; /** * * Returns ADO pipeline link for the releaseGroup */ export declare const mapADOLinks: (releaseGroup: ReleaseGroup | ReleasePackage | undefined) => string | undefined; /** * An abstract base class for classes that write {@link InstructionalPrompt}s to the terminal. */ export declare abstract class InstructionalPromptWriter { protected abstract get log(): CommandLogger; formatPrompt(data: InstructionalPrompt): Promise; /** * Writes the prompt to the terminal. */ writePrompt(data: InstructionalPrompt): Promise; } /** * A simple concrete implementation of {@link InstructionalPromptWriter}. */ export declare class PromptWriter extends InstructionalPromptWriter { log: CommandLogger; constructor(log: CommandLogger); } export {}; //# sourceMappingURL=instructionalPromptWriter.d.ts.map