import * as ts from 'typescript' ; export const declareModule = ( moduleName , statements ) => ts . createModuleDeclaration ( undefined , [ ts . createModifier ( ts . SyntaxKind . DeclareKeyword ) ] , ts . createStringLiteral ( moduleName ) , ts . createModuleBlock ( statements ) , ts . NodeFlags . None ) ;