import { JSX } from 'preact';
import AdyenPlatformExperienceError from '../../core/Errors/AdyenPlatformExperienceError';
import { TranslationKey } from '../../translations';
export type ErrorMessage = {
    title: TranslationKey;
    message?: TranslationKey | TranslationKey[];
    refreshComponent?: boolean;
    onContactSupport?: () => void;
    translationValues?: {
        [k in TranslationKey]?: JSX.Element | null;
    };
    images?: {
        desktop?: string;
        mobile?: string;
    };
};
export declare const UNDEFINED_ERROR: {
    title: "common.errors.unexpected";
    message: "common.errors.contactSupport"[];
};
export declare const getCommonErrorMessage: (error: AdyenPlatformExperienceError | undefined, onContactSupport?: () => void) => ErrorMessage | null;
//# sourceMappingURL=getCommonErrorCode.d.ts.map