import React, { ReactNode, ComponentPropsWithRef, ReactElement, MutableRefObject, HTMLProps } from 'react';
import Button from '../Button';
import { FormInstanceHandles, FormValues, FormErrors } from './types';
import './Form.less';
export declare type FormProps<FV extends FormValues> = {
    /**
     * Required mark.
     * @since 0.0.54
     */
    requiredMark?: ReactNode;
    /**
     * Hide required legend.
     * @ignore
     * @deprecated
     */
    hideRequiredLegend?: boolean;
    /**
     * Form values.
     * @since 0.0.57
     */
    values?: FV;
    /**
     * Form errors.
     * @since 0.0.57
     */
    errors?: FormErrors;
    /**
     * Current active state
     * @since 0.0.59
     */
    state?: 'submit' | 'apply' | 'cancel';
    /**
     * Content of the `Form`.
     * @since 0.0.54
     */
    children?: ReactNode;
    /**
     * Submit button visibility or custom configuration
     * @since 0.0.58
     */
    submitButton?: boolean | ComponentPropsWithRef<typeof Button>;
    /**
     * Apply button visibility or custom configuration
     * @since 0.0.58
     */
    applyButton?: boolean | ComponentPropsWithRef<typeof Button>;
    /**
     * Cancel button visibility or custom configuration
     * @since 0.0.58
     */
    cancelButton?: boolean | ComponentPropsWithRef<typeof Button>;
    /**
     * Additional buttons
     * @since 0.0.58
     */
    additionalButtons?: ReactNode[];
    /**
     * A callback function, can be executed when some field value is changing.
     * @since 3.1.0
     */
    onFieldChange?: (name: string, value: any) => void;
    /**
     * Submit handler
     * @since 0.0.54
     */
    onSubmit?: (values: FV, isApply?: boolean) => void;
    /**
     * Additional class name for the buttons container.
     * @since 0.0.66
     */
    footerClassName?: string;
    /**
     * Form responsive view will be switched automatically.
     * Specify this parameter explicitly if you want disable this behaviour and choice vertical or horizontal form view.
     * @since 0.4.1
     */
    vertical?: boolean;
    /**
     * @ignore
     */
    className?: string;
    /**
     * @ignore
     */
    baseClassName?: string;
    /**
     * @ignore
     */
    render?: (params: {
        renderForm: (params: {
            actionButtons?: ReactNode;
        }) => ReactElement;
        renderActionButtons: () => ReactElement;
    }) => ReactNode;
    /**
     * @ignore
     */
    innerRef?: MutableRefObject<null | HTMLFormElement>;
} & Omit<HTMLProps<HTMLFormElement>, 'onSubmit' | 'ref'>;
/**
 * `Form` component is used for entering and submitting of user data.
 * [More details about designing of forms.](#!/Good%20Forms)
 * @since 0.0.54
 */
declare const RefForwardingForm: React.ForwardRefExoticComponent<{
    /**
     * Required mark.
     * @since 0.0.54
     */
    requiredMark?: React.ReactNode;
    /**
     * Hide required legend.
     * @ignore
     * @deprecated
     */
    hideRequiredLegend?: boolean | undefined;
    /**
     * Form values.
     * @since 0.0.57
     */
    values?: Record<string, any> | undefined;
    /**
     * Form errors.
     * @since 0.0.57
     */
    errors?: Record<string, any> | undefined;
    /**
     * Current active state
     * @since 0.0.59
     */
    state?: "cancel" | "submit" | "apply" | undefined;
    /**
     * Content of the `Form`.
     * @since 0.0.54
     */
    children?: React.ReactNode;
    /**
     * Submit button visibility or custom configuration
     * @since 0.0.58
     */
    submitButton?: boolean | {} | undefined;
    /**
     * Apply button visibility or custom configuration
     * @since 0.0.58
     */
    applyButton?: boolean | {} | undefined;
    /**
     * Cancel button visibility or custom configuration
     * @since 0.0.58
     */
    cancelButton?: boolean | {} | undefined;
    /**
     * Additional buttons
     * @since 0.0.58
     */
    additionalButtons?: React.ReactNode[] | undefined;
    /**
     * A callback function, can be executed when some field value is changing.
     * @since 3.1.0
     */
    onFieldChange?: ((name: string, value: any) => void) | undefined;
    /**
     * Submit handler
     * @since 0.0.54
     */
    onSubmit?: ((values: Record<string, any>, isApply?: boolean | undefined) => void) | undefined;
    /**
     * Additional class name for the buttons container.
     * @since 0.0.66
     */
    footerClassName?: string | undefined;
    /**
     * Form responsive view will be switched automatically.
     * Specify this parameter explicitly if you want disable this behaviour and choice vertical or horizontal form view.
     * @since 0.4.1
     */
    vertical?: boolean | undefined;
    /**
     * @ignore
     */
    className?: string | undefined;
    /**
     * @ignore
     */
    baseClassName?: string | undefined;
    /**
     * @ignore
     */
    render?: ((params: {
        renderForm: (params: {
            actionButtons?: React.ReactNode;
        }) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
        renderActionButtons: () => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
    }) => React.ReactNode) | undefined;
    /**
     * @ignore
     */
    innerRef?: React.MutableRefObject<HTMLFormElement | null> | undefined;
} & Pick<React.HTMLProps<HTMLFormElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<FormInstanceHandles>>;
export default RefForwardingForm;
