/**
 * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
 * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
 */
import { eventCodeEnum } from '../types';
export declare const ERRORMESSAGE: {
    DOMAIN_NOT_IN_WHITE_LIST: {
        code: eventCodeEnum;
        message: string;
    };
    NOT_JSON_FORMAT: {
        code: eventCodeEnum;
        message: string;
    };
    SDK_COMPATIBILITY_ISSUES: {
        code: eventCodeEnum;
        BROWSER_NOT_SUPPORT_POSTMESSAGE: {
            code: eventCodeEnum;
            message: string;
        };
        FAILED_TO_CREATE_IFRAME: {
            code: eventCodeEnum;
            message: string;
        };
    };
    INIT_PARAMETER_ERROR: {
        code: eventCodeEnum;
        UI_MODE_NOT_SUPPORTED: {
            code: eventCodeEnum;
            message: string;
        };
        ENVIRONMENT_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
        MODE_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
        LOCALE_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
        NET_MODE_NOT_SUPPORT: {
            code: eventCodeEnum;
            message: string;
        };
        EVENT_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
    };
    CREATEPAYMENT_PARAMETER_ERROR: {
        code: eventCodeEnum;
    };
    CREATECOMPONENT_ERROR: {
        code: eventCodeEnum;
        message: string;
        SINGLETON_COMPONENT_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
        LOAD_APP_TIMEOUT: {
            code: eventCodeEnum;
            message: string;
        };
        NETWORK_REQUEST_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
    };
    SDK_LAUNCH_PAYMENT_APP_ERROR: {
        code: eventCodeEnum;
        CALL_APP_URL_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
        LOAD_APP_TIME_OUT: {
            code: eventCodeEnum;
            message: string;
        };
        CONTAINER_NOT_EXIST: {
            code: eventCodeEnum;
            message: string;
        };
    };
    SDK_SUBMIT_ERROR: {
        code: eventCodeEnum;
        message: string;
    };
    PARAM_INVALID: {
        code: string;
        message: string;
    };
    UI_STATE_ERROR: {
        code: string;
        message: string;
    };
    INITIALIZE_TIMEOUT: {
        code: string;
        API: {
            code: string;
            message: string;
        };
        WEB: {
            code: string;
            message: string;
        };
    };
    ERR_DATA_STRUCT_UNRECOGNIZED: {
        code: string;
        message: string;
    };
    /**
    @deprecated 已废弃 请使用SDK_LAUNCH_PAYMENT_APP_ERROR
    */
    SDK_CALL_URL_ERROR: {
        code: eventCodeEnum;
        REDIRECT_ERROR: {
            code: eventCodeEnum;
            message: string;
        };
    };
};
export declare const BASEPLUGINID = "CHECKOUT";
export declare const COMPONENTPLUGINID = "COMPONENT";
export declare const EVENT: {
    ready: {
        name: string;
        uniqueKey: string;
    };
    error: {
        name: string;
        uniqueKey: string;
    };
    paymentMethodSelected: {
        name: string;
        uniqueKey: string;
    };
    sizeChanged: {
        name: string;
        uniqueKey: string;
    };
    log: {
        name: string;
        uniqueKey: string;
    };
    launch: {
        name: string;
    };
    redirect: {
        name: string;
    };
    close: {
        name: string;
        uniqueKey: string;
    };
    destroy: {
        name: string;
    };
    closeCallback: {
        name: string;
        uniqueKey: string;
    };
    eventCallback: {
        name: string;
        uniqueKey: string;
    };
    submitForm: {
        name: string;
    };
    hideCloseButton: {
        name: string;
    };
    showCloseButton: {
        name: string;
    };
    setMaskCloseButton: {
        name: string;
    };
    setAllowRetention: {
        name: string;
    };
    declareCheckoutInfo: {
        name: string;
    };
    showPopup: {
        name: string;
    };
    dismissLoading: {
        name: string;
    };
    popupWindow: {
        name: string;
    };
    popWindow: {
        name: string;
    };
    getDeviceId: {
        name: string;
    };
    declareEventCallbackInfo: {
        name: string;
    };
    setGlobalData: {
        name: string;
    };
    getGlobalData: {
        name: string;
    };
    /**
     * @deprecated 已废弃 请使用eventCallback
     */
    sendMuitiAppEventToSdk: {
        name: string;
    };
    receiveMuitiAppFromSdk: {
        name: string;
    };
    sendBroadcast: {
        name: string;
    };
    receiveBroadcast: {
        name: string;
    };
    getUserAgentFromSdk: {
        name: string;
    };
    appHeartBeat: {
        name: string;
    };
    beforeSubmit: {
        name: string;
        uniqueKey: string;
    };
    beforeSubmitDone: {
        name: string;
        uniqueKey: string;
    };
    onChange: {
        name: string;
        uniqueKey: string;
    };
    getGooglePayToken: {
        name: string;
    };
    initSecuritySDK: {
        name: string;
    };
    closePaymentPolling: {
        name: string;
    };
    onPollingEnd: {
        name: string;
    };
    getApplePayToken: {
        name: string;
    };
    updated: {
        name: string;
    };
    webAppReady: {
        name: string;
    };
    showToast: {
        name: string;
    };
    getSdkVersion: {
        name: string;
    };
    inputFocus: {
        name: string;
    };
    /**
     * 通过SDK转发web应用消息给其他web应用(用于iframe之间消息互通)
     * TODO 推荐使用BusManager
     */
    messageForward: {
        name: string;
    };
    submitPromiseCallback: {
        name: string;
    };
    validateFieldsResult: {
        name: string;
        forwardName: string;
        uniqueKey: string;
    };
    canIUse: {
        name: string;
    };
};
export declare const SENDEVENT: {
    validateFields: {
        name: string;
    };
};
export declare const COMPONENT_CONTAINER_ID = "ams-component-container";
export declare const COMPONENT_SECTION_ID = "ams-component-section";
export declare const COMPONENT_IFRAME_TAG_ID = "ams-checkout-component";
export declare const COMPONENT_CLOSE_BLOCK_ID = "asm-component-close-block";
export declare const COMPONENT_CLOSE_MASK_BLOCK_ID = "ams-component-mask-close-block";
export declare const COMPONENT_RETENTION_ID = "ams-component-retention";
export declare const MOCKUP_ID = "ams-component-mockup";
export declare const LOADING_ID = "ams-component-loading";
export declare const POPUPLOADING_ID = "ams-component-popup-loading";
export declare const LISTENER_PREFIX = "_ams_sdk_component_listener";
export declare const INLINE_BASE_STYLE_ID = "ams-inline-component-style";
export declare const INLINE_IMG_CLASSNAME = "inline-loading";
export declare const AMSPOPUP_PREFIX = "ams-popup";
export declare const LOADTIME_LIMIT = 15000;
export declare const POPUP_LOADTIME_LOG_LIMIT = 3000;
export declare const ANIMATION_TIME = 300;
export declare const TIMEOUT_WEB_APP_HEART_BEAT = 6000;
export declare const TIME_DELAY_SEND_HEART_BEAT = 1000;
export declare const closeImg = "https://cdn.marmot-cloud.com/storage/2023/5/18/1692a487-99b5-4314-9d6f-e9814bc1ca41.svg";
export declare const closeImgLight = "https://cdn.marmot-cloud.com/storage/2025/05/24/50891cd3-7a4a-47c0-b550-2e2ce6187c31.svg";
export declare const LOADINGIMG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACEBAMAAACjap6UAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAqUExURUdwTKe3zKGxyK27z7K/05ytxLbD1bvH2Jaowb/K28DL3JCjvYueucDL2xLcxpgAAAAOdFJOUwCKoHRft0w5zCgY4fYKKSYvdQAABvtJREFUaN6lmt+LG1UUx6fddbcZHOgkpWutBTPbVBEfNp1xS6uF2oQURUGnBBbqw7YdsooV2ipZ06c+uBBZCistDRMUqgV1gnnwJ4HMg2jBh+Qh1bW1A/lfPOfcO9lkNz/m3j3dh2XT+eznfM+dmTvTKsroUovpeGotbyetlXuKTH17vFxeKq9R5fOJG8KAR6+Uy2vlJag8ALDmxSDa2TLWEhos5U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9pzJq4u5hj+AAAAAElFTkSuQmCC";
/**
 * @description Promise回调code映射
 */
export declare const PROMISE_CALLBACK_CODE: {
    SUCCESS: {
        code: string;
    };
    UNKNOWN_EXCEPTION: {
        code: string;
        message: string;
    };
    REPEAT_REQ_REJECT: {
        code: string;
        message: string;
    };
    PROCESS_FAIL: {
        code: string;
        message: string;
    };
    INQUIRY_PAYMENT_SESSION_FAILED: {
        code: string;
        message: string;
    };
};
