import * as ts from 'typescript'; import { ExitCode, IFileMessages, IProjectResults, IProjectStatus, TypedObject } from './Interfaces'; declare function compile(program: ts.Program, tsOptions: ts.CompilerOptions, tsLintConfigPath?: string, verbose?: boolean): TypedObject; declare function compileProject(tsConfigPath: string, tsLintConfigPath?: string, verbose?: boolean): IProjectResults; /** * Utility function to compile a project and decide if a build should fail based on the * number of errors/warnings found in the files. * * @param {string} tsconfigPath Path to `tsconfig.json` * @param {string} tslintPath Path to `tslint.json` * @param {boolean} verbose Provide if progress bars are desired * @param {TypedObject} messageMap specifies what messages are allowed * @param {boolean} ci Continuous Integration flag * @return {number} Non-zero if there is a failure */ declare function compileCLI(tsconfigPath: string, tslintPath?: string, verbose?: boolean, messageMap?: TypedObject, ci?: boolean, dumpMessages?: boolean): ExitCode; /** * Process the project results along with the message map containing the allowed number of messages * to determine an exit code. */ declare function getProjectStatus(projectResults: IProjectResults, messageMap: TypedObject): IProjectStatus; export { compile, compileProject, compileCLI, getProjectStatus, };