import * as ts from 'typescript'; import { FileCache } from './util/file-cache'; import { BuildContext, ChangedFile } from './util/interfaces'; export declare function transpile(context: BuildContext): Promise; export declare function transpileUpdate(changedFiles: ChangedFile[], context: BuildContext): Promise; /** * The full TS build for all app files. */ export declare function transpileWorker(context: BuildContext, workerConfig: TranspileWorkerConfig): Promise<{}>; export declare function canRunTranspileUpdate(event: string, filePath: string, context: BuildContext): boolean; export declare function transpileDiagnosticsOnly(context: BuildContext): Promise<{}>; export interface TranspileWorkerMessage { rootDir?: string; buildDir?: string; configFile?: string; transpileSuccess?: boolean; } export declare function getTsConfigAsync(context: BuildContext, tsConfigPath?: string): Promise; export declare function getTsConfig(context: BuildContext, tsConfigPath?: string): TsConfig; export declare function transpileTsString(context: BuildContext, filePath: string, stringToTranspile: string): ts.TranspileOutput; export declare function transformSource(filePath: string, input: string): string; export declare function copyOriginalSourceFiles(fileCache: FileCache): void; export declare function resetSourceFiles(fileCache: FileCache): void; export declare const inMemoryFileCopySuffix = "original"; export declare function getTsConfigPath(context: BuildContext): string; export interface TsConfig { options: ts.CompilerOptions; fileNames: string[]; raw: any; } export interface TranspileWorkerConfig { configFile: string; writeInMemory: boolean; sourceMaps: boolean; cache: boolean; inlineTemplate: boolean; useTransforms: boolean; }