import { createToken } from '@tinkoff/dippy' ; import type { Bundle } from '@tramvai/core' ; description export const BUNDLE_MANAGER_TOKEN = createToken < BundleManager > ( 'bundleManager' ) ; description export const ADDITIONAL_BUNDLE_TOKEN = createToken < { [ key ] : Bundle ; } > ( 'additional bundle' , { multi : true , } ) ; export interface BundleManager { bundles : Record < string , any > ; get ( name , pageComponent ) : Promise < any > ; has ( name , pageComponent ) : boolean ; }