import { SignStringData } from '../../transaction/models'; import Transaction from '../../transaction/transaction'; import { UserData } from '../../user/models'; import { WebWidgetAuthParams, WebWidgetAuthResult, WebWidgetBuyParams, WebWidgetBuyResult, WebWidgetKeyExportParams, WebWidgetKeyExportResult, WebWidgetLogoutParams, WebWidgetNewChainAccountParams, WebWidgetNewChainAccountResult, WebWidgetRecoverAccountParams, WebWidgetRecoverAccountResult, WebWidgetSignResult } from '../../webWidget/models'; export declare type PopupPluginBuyParams = WebWidgetBuyParams; export declare type PopupPluginAuthParams = WebWidgetAuthParams; export declare type PopupPluginLogoutParams = Partial; export declare type PopupPluginNewChainAccountParams = Partial; export declare type PopupPluginRecoverAccountParams = Partial; export declare type PopupPluginKeyExportParams = WebWidgetKeyExportParams; export declare type PopupPluginSignParams = { signString?: SignStringData; transaction?: Transaction; }; export declare type PopupPluginAuthSuccessResults = WebWidgetAuthResult & { user: UserData; }; export declare type PopupPluginBuySuccessResults = WebWidgetBuyResult; export declare type PopupPluginLogoutResults = WebWidgetNewChainAccountResult; export declare type PopupPluginNewChainAccountResults = WebWidgetNewChainAccountResult & { chainNetwork: string; }; export declare type PopupPluginRecoverAccountResults = WebWidgetRecoverAccountResult; export declare type PopupPluginSignResults = WebWidgetSignResult; export declare type PopupPluginKeyExportSuccessResults = WebWidgetKeyExportResult; export interface PopupPlugin { auth: (args: PopupPluginAuthParams) => Promise; sign: (args: PopupPluginSignParams) => Promise; newChainAccount: (args: PopupPluginNewChainAccountParams) => Promise; recoverAccount: (args: PopupPluginRecoverAccountParams) => Promise; buy: (args: PopupPluginBuyParams) => Promise; keyExport: (args: PopupPluginKeyExportParams) => Promise; }