import type { ElementType } from 'react'; import type { UiSchema, GenericObjectType, FormContextType, RJSFSchema, StrictRJSFSchema, UIOptionsType } from '@rjsf/utils'; export interface SemanticPropsTypes { formContext?: F; uiSchema?: UiSchema; options?: UIOptionsType; defaultSchemaProps?: GenericObjectType; defaultContextProps?: GenericObjectType; } export interface SemanticErrorPropsType { formContext?: F; uiSchema?: UiSchema; options?: UIOptionsType; defaultProps?: GenericObjectType; } export type WrapProps = GenericObjectType & { wrap: boolean; component?: ElementType; }; /** * Extract props meant for semantic UI components from props that are * passed to Widgets, Templates and Fields. * @param {Object} params * @param {Object?} params.formContext * @param {Object?} params.uiSchema * @param {Object?} params.options * @param {Object?} params.defaultSchemaProps * @param {Object?} params.defaultContextProps * @returns {any} */ export declare function getSemanticProps({ formContext, uiSchema, options, defaultSchemaProps, defaultContextProps, }: SemanticPropsTypes): any; /** * Extract error props meant for semantic UI components from props that are * passed to Widgets, Templates and Fields. * @param {Object} params * @param {Object?} params.formContext * @param {Object?} params.uiSchema * @param {Object?} params.defaultProps * @returns {any} */ export declare function getSemanticErrorProps({ formContext, uiSchema, options, defaultProps, }: SemanticErrorPropsType): any; /** * Combine multiple strings containing class names into a single string, * removing duplicates. E.g. * cleanClassNames('bar', 'baz bar', 'x y ', undefined) * // 'bar baz x y' * @param {Array} classNameArr * @param {Array} omit * @returns {string} */ export declare function cleanClassNames(classNameArr: (string | undefined)[], omit?: string[]): string; /** * * @param {boolean} wrap * @param Component * @param {Object} props * @returns {*} * @constructor */ export declare function MaybeWrap({ wrap, component: Component, ...props }: WrapProps): any;