import { FrameworkConfiguration } from 'aurelia-framework' ; import { Configuration } from './aurelia-configuration' ; export function configure ( aurelia , configCallback ? ) { let instance = aurelia . container . get ( Configuration ) as Configuration ; let promise = null ; if ( configCallback !== undefined && typeof configCallback === 'function' ) { promise = Promise . resolve ( configCallback ( instance ) ) ; } else { promise = Promise . resolve ( ) ; } return promise . then ( function ( ) { return instance . loadConfig ( ) ; } ) ; } export { Configuration } ;