import { enableLogger as emscriptenEnableLogger } from 'emscripten-wasm-loader' ; type logFunctionType = ( message : string , ... optionalParams : Array < any > ) => void ; /**
 * Default log instance falls back to noop if not specified.
 */ let logInstance = ( ) => { } ; const log = ( ... args ) => ( logInstance as any ) ( ... args ) ; param logger const enableLogger = ( logger ) => { const scopedLogger = ( scope ) => ( message , ... optionalParams ) => { logger ( `${ scope }::${ message }` , ... optionalParams ) ; } ; logInstance = scopedLogger ( `cld3` ) ; emscriptenEnableLogger ( scopedLogger ( `cld3Loader` ) ) ; } ; export { enableLogger , logFunctionType , log } ;