import { LocalizeFunc , LoadFunc , Options } from './common' ; interface RAL { loadMessageBundle ( file ? ) : LocalizeFunc ; config ( opts ? ) : LoadFunc ; } let _ral ; function RAL ( ) { if ( _ral === undefined ) { throw new Error ( `No runtime abstraction layer installed` ) ; } return _ral ; } namespace RAL { export function install ( ral ) { if ( ral === undefined ) { throw new Error ( `No runtime abstraction layer provided` ) ; } _ral = ral ; } } export default RAL ;