import type { ComponentGroup, DefinedComponent } from './library.jsx'; /** Options for creating a ReactLynx OpenUI component library. */ export interface CreateOpenUiLibraryOptions { /** * Root component name; supply its definition when defaults are disabled. * @defaultValue `'Stack'` */ root?: string; /** * Whether to include the built-in components and component groups. * @defaultValue `true` */ includeDefaultComponents?: boolean; /** * Limit built-ins to these names, retaining the selected root automatically. * Custom components are always appended. Ignored when defaults are disabled. * @defaultValue All built-in components. * @example `componentNames: ['Stack', 'Text']` */ componentNames?: readonly string[]; /** Additional components, or the complete set when defaults are disabled. */ components?: DefinedComponent[]; /** Additional groups, or the complete set when defaults are disabled. */ componentGroups?: ComponentGroup[]; }