import { InjectConnectors } from './dappCore/injectConnectors.js'; export { CreateConnectorsParams, injectConnectors } from './dappCore/injectConnectors.js'; import { EnsureChannelIsReady } from './sdkCore/ensureChannelReady.js'; export { ensureChannelIsReady } from './sdkCore/ensureChannelReady.js'; import { getCoreSdkInfo } from './sdkCore/sdkInfo.js'; export { SdkInfoItem, SdkInfoMessage, getSdkInfoReporter } from './sdkCore/sdkInfo.js'; import { setLogLevel, logger } from './utils/logging.js'; import { ShowWidget, GetWidgetVisibilityStatus } from './widget/managementMethods.js'; export { GetParentWindowDimensionsRequest, GetParentWindowDimensionsResponse, HideWidgetMessage, RefreshPageMessage, SetDeviceTypeWidgetMessage, SignOutWidgetMessage, ToggleWidgetMessage, WidgetManagementMessage, WidgetReadyMessage, WidgetVisibilityStatus, isNufiWidgetManagementMessage } from './widget/managementMethods.js'; import { SocialLoginInfo, exposeSocialLoginInfo } from './widget/socialLoginInfo.js'; export { SocialLoginInfoChangedMessage } from './widget/socialLoginInfo.js'; import { EnsureWidgetEmbeddedInIframe, IFrameOptions } from './widget/init.js'; export { CORE_SDK_NOT_INITIALIZED } from './widget/init.js'; export { safeReplyToEvent } from './utils/events.js'; export { objKeyByConnectorPlatform } from './dappCore/constants.js'; export { isNufiMessage, messageDirectionMatches } from './dappCore/nufiMessage.js'; export { ConnectorObject, ConnectorPlatform, CoreNufiMessage, DappConnectorsConfig, ErrorResponse, EventHandler, Handler, InitChannelData, InitChannelMessage, InjectedConnector, InjectedConnectorFactory, MessageHeader, MessageToClient, MessageToClientEvent, MessageToClientResponse, MessagingClient, NufiMessage, PingChannelMessage, RequestArgument, RequestContext, RequestMessage, Response, ScriptContext, SendRequest, ServiceEvent, SuccessResponse, UntypedConnectorKind, WalletOverrides, WidgetSessionData } from './dappCore/types.js'; export { getRandomUUID, hardenUnreliableRequest, set, setIfDoesNotExist } from './dappCore/utils.js'; export { BlockchainSdkOptions, LoginInfo, LoginType, SdkOptions } from './sdkCore/types.js'; export { MetamaskLoginInfo, MetamaskLoginType } from './sdkCore/metamask/types.js'; export { getMetaMaskProviderWithEip6963, isMetamaskInstalled } from './sdkCore/metamask/detection.js'; export { WEB3_AUTH_LOGIN_PROVIDERS, Web3AuthProvider, isSupportedWeb3AuthProvider } from './sdkCore/web3Auth/providers.js'; export { Web3AuthLoginInfo, Web3AuthLoginType } from './sdkCore/web3Auth/types.js'; export { MetaMaskInpageProvider } from '@metamask/providers'; import './widget/responsiveUIHandlers.js'; type Api = { hideWidget: () => void; showWidget: ShowWidget; getWidgetVisibilityStatus: GetWidgetVisibilityStatus; onSocialLoginInfoChanged: (cb: (data: SocialLoginInfo | null) => unknown) => SocialLoginInfo | null; getSocialLoginInfo: typeof exposeSocialLoginInfo; signOut: () => void; isMetamaskInstalled: () => Promise; }; type WidgetApi = Pick; type CoreDappSdkContext = { ensureWidgetEmbeddedInIframe: EnsureWidgetEmbeddedInIframe; ensureChannelIsReady: EnsureChannelIsReady; injectConnectors: InjectConnectors; }; type PublicCoreSdk = { __getContext: () => CoreDappSdkContext; __setLogLevel: typeof setLogLevel; __logger: typeof logger; __getSdkInfo: typeof getCoreSdkInfo; /** * @deprecated * The following methods ('showWidget' | 'hideWidget' | 'getWidgetVisibilityStatus' | 'signOut') * are ignored if called when the widget is not yet initialized. We therefore suggest * using `getWidgetApi` and importing other methods from default export instead. */ getApi: () => Api; getWidgetApi: () => Promise; init: (origin?: string, iframeOptions?: IFrameOptions) => void; getSocialLoginInfo: Api['getSocialLoginInfo']; onSocialLoginInfoChanged: Api['onSocialLoginInfoChanged']; isMetamaskInstalled: Api['isMetamaskInstalled']; }; declare const publicNufiCoreSdk: PublicCoreSdk; export { EnsureChannelIsReady, GetWidgetVisibilityStatus, IFrameOptions, InjectConnectors, type PublicCoreSdk, ShowWidget, SocialLoginInfo, publicNufiCoreSdk as default, getCoreSdkInfo };