import * as ESTree from "estree"; import { ICodeTemplateMapping } from "./compileCodeTemplate"; declare class JSCode { static fromSrc(src: string, sourceFile?: string): JSCode; static fromAst(ast: ESTree.Node, sourceFile?: string): JSCode; static size(node: any): number; sourceFile: string; lineOffset: number; private internalSrc; private internalAst; constructor({sourceFile, lineOffset}?: { sourceFile?: string; lineOffset?: number; }); ast: ESTree.Node; src: string; astBody: ESTree.Statement[]; instrumentFunctionEntries(instrTemplate: Function, mappings?: ICodeTemplateMapping): void; instrumentResourceEntry(instrTemplate: Function, mappings?: ICodeTemplateMapping): void; instrumentResourceExit(instrTemplate: Function, mappings?: ICodeTemplateMapping): void; functionInfo(): any; } export default JSCode;