import { Environment } from './Environment'; interface IBuilderMessages { warnings: [string, number][]; errors: [string, number][]; } declare class IO { env: Environment; static warnings: [string, number][]; static errors: [string, number][]; constructor(env: Environment); log(msg: any): void; /** * Print a message to the console and stores the warning. */ warn(msg: string): void; /** * Prints a message to the console and stores the error. */ error(msg: string): void; /** * To be used to pass a resolved promise down a chain of promises. */ success(value: T, msg?: string): Promise; /** * To be used to pass a rejected promise down a chain of promises. */ failure(err: string | Error): Promise; openBlock(name: string, desc: string): void; closeBlock(name: string): void; /** * Teamcity requires certain characters to be escaped when we use service messages. See * https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-Escapedvalues */ escapeTC(msg: string): string; loadMessages(): IBuilderMessages | null; /** * To be called before the process finishes so that all the error and warning messages may be * dumped. */ dumpMessages(): void; /** * Prompts the user for the next version provided by the `currentVersion`. The current version is * assumed to be parsable by `semver`. * * @param currentVersion The current version of the package. */ promptForNewVersion(currentVersion: string): Promise; } export { IBuilderMessages, IO, };