@particle-network/auth-core-modal
Version:
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
25 lines (24 loc) • 964 B
TypeScript
import { type WalletConfig } from '@particle-network/wallet';
import type { OpenBuyOptions } from '../types';
interface OpenWalletOptions {
windowSize?: 'small' | 'large';
pathName?: string;
query?: Record<string, unknown>;
topMenuType?: 'close' | 'fullscreen';
}
export declare const useAuthCore: () => {
userInfo: import("@particle-network/auth-core").UserInfo | undefined;
needRestoreWallet: boolean;
openAccountAndSecurity: () => void;
openSetMasterPassword: () => void;
openChangeMasterPassword: () => void;
openRestoreByMasterPassword: () => void;
openSetPaymentPassword: (securityAccountEmailOrPhone: string) => void;
openChangePaymentPassword: () => void;
openSetSecurityAccount: () => void;
openLinkLoginAccount: () => void;
openWallet: (options?: OpenWalletOptions) => void;
buildWalletUrl: (options?: WalletConfig) => string;
openBuy: (options?: OpenBuyOptions) => void;
};
export {};