export const createFacadeModuleFactory = (moduleName, fn) => {
    const facadeModuleFactory = (config) => {
        const facadeModule = ((facade) => fn(facade, config));
        facadeModule.moduleName = moduleName;
        return facadeModule;
    };
    facadeModuleFactory.moduleName = moduleName;
    return facadeModuleFactory;
};
export const createFacadeModule = (moduleName, module) => {
    const facadeModule = ((facade) => module(facade));
    facadeModule.moduleName = moduleName;
    return facadeModule;
};
export const decomposeError = (error) => {
    const { name, code, message, details, error_description, stack } = error;
    return { name, code, message, details, error_description, stack };
};
//# sourceMappingURL=utils.js.map