import { getBioTemplatePackInfo } from './packs' import { createDefaultBioTemplate } from './defaultBioTemplateBuilder' import { createTemplateCollection } from './templateEnvelopes' import type { CreateBioTemplatePackCollectionOptions, TemplateCollectionEnvelope, TemplatePackId, } from './types' /** @deprecated Scheduled for removal from the core SDK in MINT 1.4; the biology templates move to a dedicated package or the owning plugins. */ export function createBioTemplatePackCollection( name: TemplatePackId | string, options: CreateBioTemplatePackCollectionOptions = {}, ): TemplateCollectionEnvelope { const pack = getBioTemplatePackInfo(name) if (!pack) { throw new Error(`Unknown template pack '${name}'.`) } return createTemplateCollection( pack.templates.map(templateId => createDefaultBioTemplate(templateId)), { pack: pack.name, ...(options.metadata ?? {}) }, ) }