import { default as React, ReactNode } from 'react';
export type CFiledChildProps = {
    onValueChange?: (val: any) => void;
    initialValue?: any;
    value?: any;
};
export type CFieldProps = {
    children: React.ReactNode;
    label?: string;
    labelWidth?: string;
    labelAlign?: 'start' | 'center' | 'end';
    tips?: ReactNode | (() => ReactNode);
    name: string;
    condition?: (formState: Record<string, any>) => boolean;
    onConditionValueChange?: (val: boolean) => void;
    /** 不做任何包裹, 不会渲染 switchSetter */
    noStyle?: boolean;
    /** 隐藏 label, 会渲染 switchSetter */
    hiddenLabel?: boolean;
    valueChangeEventName?: string;
    formatEventValue?: (val: any) => any;
    rules?: {
        validator?: (value: any) => Promise<boolean | undefined>;
        required?: boolean;
        msg?: string;
    }[];
};
export declare const CField: (props: CFieldProps) => import("react/jsx-runtime").JSX.Element | null;
