import type { ReactNode } from 'react';
import React from 'react';
import type { CFormContextData, ContextState } from './context';
export type CFormProps = {
    name: string;
    children?: ReactNode | ReactNode[];
    initialValue?: Record<string, any>;
    customSetterMap: CFormContextData['customSetterMap'];
    onValueChange?: (formData: Record<string, any>) => void;
};
export declare class CForm extends React.Component<CFormProps, CFormContextData> {
    updateContext: (newState: ContextState) => void;
    constructor(props: CFormProps);
    getFieldsValue: () => Record<string, any>;
    setFields: (state: Record<string, any>) => void;
    formatValue: (data: Record<string, any>) => Record<string, any>;
    render(): ReactNode;
}
