import { SubmissionErrors } from 'final-form'; export declare const setUnexpectedFormErrorMessage: (message: string) => void; export declare const globalFormError: (e: any) => SubmissionErrors; export declare const fieldError: (field: keyof T, message: string) => SubmissionErrors; export interface IFirebaseHttpsError extends Error { /** * A standard error code that will be returned to the client. This also * determines the HTTP status code of the response, as defined in code.proto. */ readonly code: string; /** * Extra data to be converted to JSON and included in the error response. */ readonly details?: any; } export declare type ErrorHandler = (e: any) => void; export declare const onUnexpectedFormError: (handler: ErrorHandler | null) => void; export declare const handleUnexpectedError: (e: any) => SubmissionErrors; export declare const httpsToSubmissionErrorAdapter: (e: IFirebaseHttpsError) => SubmissionErrors; export declare const mapValidationErrors: (e: any, errorCodeMapField: Record) => SubmissionErrors;