import { SimpliPayConfig, PaymentData, TransactionResult, TransactionError } from '../types'; interface UseSimplipayReturn { isOpen: boolean; openCheckout: (paymentData: PaymentData) => void; closeCheckout: () => void; paymentData: PaymentData | null; result: TransactionResult | null; error: TransactionError | null; } /** * Hook for programmatic control of SimpliPay Checkout * * @example * ```tsx * const { isOpen, openCheckout, closeCheckout, result, error } = useSimplipay({ * publicKey: 'pk_test_xxxxx', * environment: 'development' * }); * * // Open checkout * openCheckout({ * email: 'customer@example.com', * phone: '+2348012345678', * amount: 5000, * currency: 'NGN', * transactionRef: 'TXN-123', * customerId: 'CUST-456' * }); * ``` */ export declare const useSimplipay: (config: SimpliPayConfig) => UseSimplipayReturn; export default useSimplipay;