import ts = require('typescript'); import { Action } from './mutable-source-code'; import { VisitorContext } from './visitor'; export declare class TranspilerContext implements VisitorContext { private _fileName; private langServiceProvider; private _halted; private _actions; private _diags; constructor(_fileName: string, langServiceProvider?: () => ts.LanguageService); isHalted(): boolean; insertLine(position: number, str: string): void; insert(position: number, str: string): void; replace(start: number, end: number, str: string): void; fastAppend(str: string): void; fastRewrite(start: number, str: string): void; reportDiag(node: ts.Node, category: ts.DiagnosticCategory, message: string, halt?: boolean): void; pushDiag(diagnostic: ts.Diagnostic): void; readonly actions: Action[]; readonly diags: ts.Diagnostic[]; readonly halted: boolean; readonly fileName: string; getLanguageService(): ts.LanguageService; }