import { createBioTemplateControlToolkit, getBioTemplateControlSchema, requireBioTemplateControlSchema, type BioTemplateControlSchema, type BioTemplateControlTarget, } from '../templates/controlSchemas' import type { ControlSchemaOptions, ControlWorkspaceOptions, UseControlSchemaReturn, } from './controlSchemaTypes' export { getBioTemplateControlSchema, requireBioTemplateControlSchema, } export type { BioTemplateControlSchema, BioTemplateControlTarget, } /** * Build FormBuilder schema, AppSidebar panels, and defaults for a built-in biology template or preset. * * @deprecated Scheduled for removal in MINT 1.4; no SDK replacement. */ export function useBioTemplateControls( target: BioTemplateControlTarget, options: ControlWorkspaceOptions = {}, ): UseControlSchemaReturn { const { initialValues, topBarSettings: _topBarSettings, ...schemaOptions } = options const controls = createBioTemplateControlToolkit(target, schemaOptions as ControlSchemaOptions) if (initialValues === undefined) return controls return { ...controls, initialValues: { ...controls.initialValues, ...initialValues, }, } }