import type { CollectorInterface } from './types' ; export { Package , CollectorInterface } from './types' ; export function getCollectorBy ( collector ) { const Collector = typeof collector === 'string' ? require ( collector ) . Collector : collector ; return Collector ; }