/// <amd-module name="@angular/compiler-cli/src/ngtsc/typecheck/src/type_check_file" />
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
import * as ts from 'typescript';
import { AbsoluteFsPath } from '../../file_system';
import { Reference, ReferenceEmitter } from '../../imports';
import { ClassDeclaration } from '../../reflection';
import { TypeCheckBlockMetadata, TypeCheckingConfig } from './api';
import { Environment } from './environment';
/**
 * An `Environment` representing the single type-checking file into which most (if not all) Type
 * Check Blocks (TCBs) will be generated.
 *
 * The `TypeCheckFile` hosts multiple TCBs and allows the sharing of declarations (e.g. type
 * constructors) between them. Rather than return such declarations via `getPreludeStatements()`, it
 * hoists them to the top of the generated `ts.SourceFile`.
 */
export declare class TypeCheckFile extends Environment {
    private fileName;
    private nextTcbId;
    private tcbStatements;
    constructor(fileName: string, config: TypeCheckingConfig, refEmitter: ReferenceEmitter);
    addTypeCheckBlock(ref: Reference<ClassDeclaration<ts.ClassDeclaration>>, meta: TypeCheckBlockMetadata): void;
    render(): ts.SourceFile;
    getPreludeStatements(): ts.Statement[];
}
export declare function typeCheckFilePath(rootDirs: AbsoluteFsPath[]): AbsoluteFsPath;
