UNPKG

based-auth

Version:

A Next.js/Node.js authentication and wallet API kit for Ethereum and Solana, with utilities for serialization and contract interaction, designed for serverless and API route usage.

66 lines (65 loc) 1.95 kB
/// <reference types="react" /> interface SimpleKitContextType { chains: any[]; wagmiConfig: any; signMessage: string; open: boolean; setOpen: React.Dispatch<React.SetStateAction<boolean>>; pendingItem: any; setPendingItem: React.Dispatch<React.SetStateAction<any>>; router: any; setRouter: React.Dispatch<React.SetStateAction<any>>; } export declare const titles: { home: string; account: string; walletConnecting: string; selectETHWallet: string; selectSolanaWallet: string; walletqr: string; switchAccount: string; switchingAccount: string; switchChain: string; switchingChain: string; withdrawFunds: string; withdrawingFunds: string; accountSigning: string; }; export declare const routes: { home: string; account: string; accountSigning: string; socialConnecting: string; walletConnecting: string; selectETHWallet: string; selectSolanaWallet: string; walletqr: string; switchAccount: string; switchingAccount: string; switchChain: string; switchingChain: string; withdrawFunds: string; withdrawingFunds: string; }; export declare const SimpleKitContext: import('react').Context<SimpleKitContextType>; export declare const useSimpleKitContext: () => SimpleKitContextType; export declare const useSimpleKit: () => { chains: any[]; wagmiConfig: any; signMessage: string; pendingItem: any; setPendingItem: React.Dispatch<React.SetStateAction<any>>; router: any; setRouter: React.Dispatch<React.SetStateAction<any>>; isOpen: boolean; openModal: () => void; closeModal: () => void; }; export declare const SimpleKitContextProvider: ({ children, chains, signMessage, metadata, projectId, }: { children: React.ReactNode; chains: any[]; signMessage: string; metadata: any; projectId: string; }) => import("react/jsx-runtime").JSX.Element; export {};