import { d as LoginToMiniApp, U as User } from './types-D4oWUR5Y.js';
import '@coinbase/wallet-sdk';
import '@simplewebauthn/browser';
import '@solana/kit';
import 'react';
import 'viem';
import '@privy-io/api-types';
import '@privy-io/js-sdk-core';
import '@base-org/account';
import '@wallet-standard/base';
import '@solana/wallet-standard-features';
import '@wallet-standard/features';
import '@privy-io/ethereum';
import 'eventemitter3';

type UseLoginToMiniAppInterface = {
    /**
     * Initializes the login to Farcaster Mini App flow.
     *
     * @returns a Promise that resolves to a nonce that must be signed by the Farcaster wallet.
     */
    initLoginToMiniApp: () => Promise<{
        nonce: string;
    }>;
    /**
     * Logs in a user into a Farcaster Mini App with the signed nonce message.
     *
     * @param message - the SIWF message which was signed by the Farcaster wallets
     * @param signature - the signature of the message, verifying the user's Farcaster wallets
     * @param fid - the Farcaster user ID
     */
    loginToMiniApp: ({ message, signature }: LoginToMiniApp) => Promise<User | null>;
};
/**
 * Use this hook to log a user into a Farcaster Mini App (formerly known as frames)
 *
 * @returns initLoginToMiniApp - initializes a Farcaster Mini App login flow.
 * @returns loginToMiniApp - authenticates a user into a Farcaster Mini App.
 */
declare const useLoginToMiniApp: () => UseLoginToMiniAppInterface;

export { useLoginToMiniApp };
export type { UseLoginToMiniAppInterface };
