import { type ModuleUiDefinition, parseModuleUiDefinition } from "./module-ui.js"; /** * The module author's entry point, mirroring `defineModuleRuntime` (ADR 0006): validate at authoring * time, freeze, and preserve the literal type. A malformed definition fails where it was written * rather than in a host, at mount time, in a browser. */ export function defineModuleUi( definition: Definition, ): Readonly { return parseModuleUiDefinition(definition) as Readonly; }