import { useConnectCallbackProps } from "@coin-voyage/crypto/hooks"; import { WalletPermission } from "@coin-voyage/crypto/types"; import React from "react"; import type { PaymentState } from "../../../hooks/usePaymentState"; import type { CustomTheme, Languages, Mode, PayKitOptions, PayModalOptions, Theme } from "../../../types"; import type { ROUTE } from "../../../types/routes"; export type PayContextValue = { theme: Theme; setTheme: React.Dispatch>; mode: Mode; setMode: React.Dispatch>; customTheme: CustomTheme | undefined; setCustomTheme: React.Dispatch>; lang: Languages; setLang: React.Dispatch>; setOnOpen: (fn?: () => void) => void; setOnClose: (fn?: () => void) => void; open: boolean; setOpen: (open: boolean) => void; onSuccess: () => void; route: ROUTE; setRoute: React.Dispatch>; errorMessage: string | React.ReactNode | null; debugMode?: boolean; log: (...props: any) => void; displayError: (message: string | React.ReactNode | null, code?: any) => void; resize: number; triggerResize: () => void; /** Global options, across all pay buttons and payments. */ options?: PayKitOptions; /** Loads a payment, then shows the modal to complete payment. */ showModal: (modalOptions: PayModalOptions) => void; /** Payment status & callbacks. */ paymentState: PaymentState; /** Allowed wallets for the current payment. */ allowedWallets: WalletPermission[] | null; } & Omit; export declare const PayContext: React.Context; export default function usePayContext(): PayContextValue;