/*! * devextreme-react * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/DevExtreme */ import { ITemplateMeta } from '../../template'; declare enum ElementType { Option = 0, Template = 1, Unknown = 2 } interface IExpectedChild { optionName: string; isCollectionItem: boolean; } interface IOptionDescriptor { isCollection: boolean; name: string; templates: ITemplateMeta[]; initialValuesProps: Record; predefinedValuesProps: Record; expectedChildren: Record; } interface IOptionElement { type: ElementType.Option; descriptor: IOptionDescriptor; props: Record; } declare function getOptionInfo(elementDescriptor: IElementDescriptor, props: Record, parentExpectedChildren?: Record): IOptionElement; declare function getElementType(element: React.ReactNode): ElementType; interface IElementDescriptor { OptionName: string; IsCollectionItem?: boolean; DefaultsProps?: Record; TemplateProps?: ITemplateMeta[]; PredefinedProps?: Record; ExpectedChildren?: Record; } export { getElementType, getOptionInfo, ElementType, IOptionElement, IExpectedChild, IElementDescriptor, IOptionDescriptor, };