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