import { type FC, type ReactNode } from "react"; export type EmptyValue = "null" | "undefined"; export type GetEmptyValue = T extends "undefined" ? undefined : null; export declare function getEmptyValue(value?: T): GetEmptyValue; export interface FormContext { /** * 空值设置,默认是 null */ emptyValue: EmptyValue; } export declare const FormContext: import("react").Context; export interface FormProviderProps extends Partial { children?: ReactNode; } export declare const FormProvider: FC;