import type { ReactElement, ReactNode } from 'react'; import React from 'react'; import CommonStore from '../common-store'; type NamePath = string | string[]; declare class FormStore extends CommonStore { constructor(); setFieldsValue(value: Partial): void; setFieldValue(key: NamePath, value: any): Partial; getFieldsValue(): T; getFieldValue(key: NamePath): any; } export type SimpleFormContextType = { form: FormStore; changeValue: (key: NamePath, value: any) => void; }; export declare const SimpleFormContext: React.Context; export interface SimpleFormProps> { initialValues?: Partial; onValuesChange?: (changed: Partial, value: T) => void; children?: ReactNode; form?: FormStore; } declare const SimpleForm: { >(props: SimpleFormProps): import("react/jsx-runtime").JSX.Element; useForm: (_form?: FormStore) => FormStore[]; Item: (props: SimpleFormItemProps) => import("react/jsx-runtime").JSX.Element; Context: React.Context; useFormInstance(): FormStore; }; export default SimpleForm; export type SimpleFormItemProps = { name?: NamePath; valuePropName?: string; trigger?: string; children?: ReactElement; };