import React, { ReactNode } from 'react';
import { LoginResult, MagicWidgetProps, ThirdPartyWallet } from '../types';
interface WidgetConfigContextValue {
    /** Third-party wallets to display */
    wallets: ThirdPartyWallet[];
    /** Call when login succeeds */
    handleSuccess: (result: LoginResult) => void;
    /** Call when login fails */
    handleError: (error: Error) => void;
    /** Call to close the widget. Undefined if onClose prop wasn't provided. */
    handleClose?: () => void;
}
interface WidgetConfigProviderProps extends MagicWidgetProps {
    children: ReactNode;
}
export declare function WidgetConfigProvider({ children, wallets, onSuccess, onError, onClose, closeOnSuccess, }: WidgetConfigProviderProps): React.JSX.Element;
/**
 * Hook to access the widget configuration
 * @throws Error if used outside of WidgetConfigProvider
 */
export declare function useWidgetConfig(): WidgetConfigContextValue;
export {};
