UNPKG

@blockscout/app-sdk

Version:

A React SDK for Blockscout integration

29 lines (21 loc) 749 B
import { default as default_2 } from 'react'; import { JSX } from 'react/jsx-runtime'; export declare const NotificationProvider: ({ children, }: { children: default_2.ReactNode; }) => JSX.Element; export declare const TransactionPopupProvider: ({ children, }: { children: default_2.ReactNode; }) => JSX.Element; declare interface TxPopupContextType { openPopup: (options: TxPopupOptions) => void; closePopup: () => void; } declare interface TxPopupOptions { chainId: string; address?: string; } export declare function useNotification(): { openTxToast: (chainId: string, hash: string) => Promise<void>; }; export declare const useTransactionPopup: () => TxPopupContextType; export { }