import React from 'react'; import type { Data } from '../core/normalize'; export type ChildrenIsFunction = (fields: any, operation: any, meta?: any) => React.ReactNode; type NamePath = string | number | (string | number)[]; export interface ItemInterface { (props: ItemProps & { children?: React.ReactNode | ChildrenIsFunction; }): React.ReactElement | null; } export type SchemaItemProps = { field?: NamePath; fieldId?: string; index?: number; fieldKey?: number; name?: any; children?: any; onChange?: any; beforeChange?: any; isListField?: boolean; onFieldChange?: any; referenceName?: boolean; className?: string; }; export interface ItemProps extends Omit { formItemProps?: Record; fieldKey?: number; name?: any; beforeChange?: (any: any) => void; form: any; fieldName: NamePath; } export default function ItemDecorator(Item: ItemInterface): (props: any) => React.JSX.Element; export {};