import { FormSubmitResult, ConnectionResultData } from "../common/types";
export declare const formSubmitValidation: (result: FormSubmitResult | ConnectionResultData, ref: any) => void;
export declare const validateControls: (formSubmitResult: FormSubmitResult, validatableControls: Map<string, ControlValidation>) => Map<string, ControlValidation>;
export declare const clearControlError: (validatableControls: Map<string, ControlValidation>, controlId: string) => void;
export type ControlValidation = {
    reference: HTMLElement;
    hasError: boolean;
    message: string;
};
