import { type ReactNode } from 'react'; import type { HyperswitchConfiguration, HyperswitchSession, PaymentSession, PaymentSessionConfiguration } from '../types/definitions'; import type { Elements } from '../types/elements'; import type { WalletSessionHandle } from '../types/walletSession'; export type WalletEligibility = { googlePay: boolean; applePay: boolean; }; interface HyperElementsContext { paymentSession: PaymentSession | null; walletSession: WalletSessionHandle | null; walletEligibility: WalletEligibility; walletLoading: boolean; loadWalletSession: () => Promise; elements: Elements | null; publishableKey: string | null; sdkAuthorization: string | null; hyperswitchConfig: HyperswitchConfiguration | null; paymentSessionConfig: PaymentSessionConfiguration | null; loading: boolean; error: Error | null; } declare const HyperElementsContext: import("react").Context; export interface HyperElementsProps { hyper: HyperswitchSession | Promise | null; options: { sdkAuthorization: string; }; children: ReactNode; } export declare function HyperElements({ hyper, options, children, }: HyperElementsProps): import("react").JSX.Element; export declare function useHyperElementsContext(): HyperElementsContext; export type UseWalletSessionResult = { walletSession: WalletSessionHandle | null; isGooglePayEligible: boolean; isApplePayEligible: boolean; loading: boolean; load: () => Promise; }; export declare function useWalletSession(): UseWalletSessionResult; export declare function useOptionalWalletSession(): UseWalletSessionResult; export declare function useOptionalPaymentSession(): PaymentSession | null; export declare function usePaymentSession(): PaymentSession | null; export declare function useElements(): Elements | null; export {}; //# sourceMappingURL=HyperElements.d.ts.map