import * as path from 'path';
import { CompilerOptions, Diagnostics, TsEmitCallback } from '@angular/compiler-cli';
export declare const GENERATED_FILES: RegExp;
export declare const DTS: RegExp;
export interface ParsedDiagnostics {
    exitCode: number;
    error?: Error;
}
export declare function parseDiagnostics(allDiagnostics: Diagnostics, options?: CompilerOptions): ParsedDiagnostics;
export declare const defaultEmitCallback: TsEmitCallback;
export declare function createTsickleEmitCallback(options: CompilerOptions): TsEmitCallback | undefined;
/**
 * Returns a function that can adjust a path from source path to out path,
 * based on an existing mapping from source to out path.
 *
 * TODO(tbosch): talk to the TypeScript team to expose their logic for calculating the `rootDir`
 * if none was specified.
 *
 * Note: This function works on normalized paths from typescript.
 *
 * @param outDir
 * @param outSrcMappings
 */
export declare function createSrcToOutPathMapper(outDir: string | undefined, sampleSrcFileName: string | undefined, sampleOutFileName: string | undefined, host?: {
    dirname: typeof path.dirname;
    resolve: typeof path.resolve;
    relative: typeof path.relative;
}): (srcFileName: string, reverse?: boolean) => string;
