/**
 * 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 { ComponentActionNamesType } from '../../plugin/type';
import ComponentApp from '../../plugin/component';
import type { AMSCheckoutOptions, IAppendParams, InitSecurityConfig, IoptionsParams } from '../../types/index';
import { EventCenter } from '../../util/index';
import { Logger } from '../../util/logger';
import { Security } from '../../util/security';
export default class AMSSDK {
    options: AMSCheckoutOptions;
    originOptions: IoptionsParams;
    logger: Logger;
    _eventCenter: EventCenter;
    _instanceId: string;
    _storageId: string;
    _appendParams: IAppendParams;
    _componentApp: ComponentApp;
    protected securitySdkMap: Map<string, Security>;
    protected plugins: Map<string, any>;
    constructor(options: IoptionsParams);
    private preInitSecurity;
    /**
     * @description Destroy and process some contents of the plug-in
     */
    unmount(): void;
    /**
     * @description init security SDK
     * @param product Product Scenarios
     * @param scene Scenario of the product (compatible with old version parameters, about to be deleted)
     */
    initSecurity({ product, scene, }: InitSecurityConfig & {
        scene?: string;
    }): void;
    /**
     * @description Obtain security SDK through scenario identification
     */
    _getSecuritySDKByProductScene(securityConfig: InitSecurityConfig): Security;
    /**
     * @description New security SDK through scenario identification
     */
    _newSecuritySDKByScene(securityConfig: InitSecurityConfig, successCallback?: () => void, failCallback?: (errMsg?: string) => void): Security;
    /**
     * @description Obtain risk control configuration in local storage
     */
    private getSecurityConfigStorage;
    /**
     * @description Set the sdk basic configuration
     */
    private _setOptions;
    /**
     * @description Set environment variables
     */
    private _setEnv;
    /**
     * @description Set UI and Network Mode
     */
    private _setMode;
    /**
     * @description Initialize event related tasks
     */
    private _initEvent;
    /**
     * @description Register plug-in
     */
    protected _registerPlugin(pluginId: string, plugin: any): void;
    /**
     * @description Get Plug-in
     */
    protected _getPlugin(pluginId: string): any;
    /**
     * @description Execute to open app or jump link
     */
    _redirect(data: {
        normalUrl?: string;
        schemeUrl?: string;
        applinkUrl?: string;
        callAppJudgeTime?: number;
    }): Promise<void>;
    /**
     * @description Overlay Subscription
     */
    protected _overrideSubscription(name: string, func: any, funcKey: string): void;
    protected getBusActionNames(): ComponentActionNamesType;
}
