import { Chain } from "viem"; import { Dispatch, SetStateAction } from "react"; import { BytesLike } from "ethers"; import { ProductCart } from '../../lib/cart/cartProductTypes'; import { View } from "../Modal/modals/types"; export type Purchase = { slicerId: string; productId: string; totalQuantity: string; buyerCustomData: BytesLike; }; type Theme = { cartButtonColor?: string; textColor?: string; backgroundColor?: string; accentColor?: string; accentBackgroundColor?: string; }; type SliceContextType = { appChainId: number; modalView: View; setModalView: Dispatch>; isSwitchingNetwork: boolean; isModalTrigger: number; purchases: Purchase[]; cart: ProductCart[]; setPurchases: Dispatch>; updateCart: (newCart: ProductCart[]) => void; switchNetwork: (chainId_?: number) => void; setIsModalTrigger: Dispatch>; checkoutCompleted: boolean; setCheckoutCompleted: Dispatch>; isUpdatingCart: boolean; setIsUpdatingCart: Dispatch>; isConnected: boolean; setIsConnected: Dispatch>; notificationReceiver: string | undefined; isReady: boolean; setIsReady: Dispatch>; hash: string; setHash: Dispatch>; theme: Theme; accountBalance: { decimals: number; formatted: string; symbol: string; value: bigint; }; refetchBalance: (options?: { throwOnError: boolean; cancelRefetch: boolean; }) => Promise; }; export declare function useSliceContext(): SliceContextType; declare const SliceProvider: ({ chains, children, initCart, notificationReceiver, theme }: { chains: Chain[]; children: React.ReactNode; initCart?: ProductCart[]; notificationReceiver?: string; theme?: Theme; }) => import("react/jsx-runtime").JSX.Element; export default SliceProvider;