{"version":3,"file":"helpers.cjs","names":["helpers"],"sources":["../src/helpers.ts"],"sourcesContent":["import {\n  helpers,\n  type IGlobalUtils,\n  type IShareUtils,\n} from '@module-federation/runtime-core';\nimport { getGlobalFederationInstance } from './utils';\n\nexport type {\n  IGlobalUtils,\n  IShareUtils,\n} from '@module-federation/runtime-core';\n\ntype RuntimeGlobalUtils = IGlobalUtils & {\n  getGlobalFederationInstance: typeof getGlobalFederationInstance;\n};\n\nexport const global: RuntimeGlobalUtils = {\n  ...helpers.global,\n  getGlobalFederationInstance,\n};\n\nexport const share: IShareUtils = helpers.share;\n\nexport interface IRuntimeUtils {\n  matchRemoteWithNameAndExpose: typeof import('@module-federation/runtime-core').matchRemoteWithNameAndExpose;\n  preloadAssets: (...args: any[]) => void;\n  getRemoteInfo: typeof import('@module-federation/runtime-core').getRemoteInfo;\n}\n\nexport const utils: IRuntimeUtils = helpers.utils;\n\nconst runtimeHelpers: {\n  global: RuntimeGlobalUtils;\n  share: IShareUtils;\n  utils: IRuntimeUtils;\n} = {\n  global,\n  share,\n  utils,\n};\n\nexport default runtimeHelpers;\n"],"mappings":";;;;;;AAgBA,MAAa,SAA6B;CACxC,GAAGA,wCAAQ;CACX;CACD;AAED,MAAa,QAAqBA,wCAAQ;AAQ1C,MAAa,QAAuBA,wCAAQ;AAE5C,MAAM,iBAIF;CACF;CACA;CACA;CACD"}