import { VoidFunc, VoidFuncNoParam } from "../../../../fd-toolbox/functions/internal-getter-setter-functions";
export interface FormData {
    name: string;
    email: string;
    country: string;
    zip: string;
}
/**
 * Props for {@link CheckoutForm}
 */
export interface CheckoutFormProps {
    /** Price of the subscription */
    price: number;
    pricingId?: string;
    /** Event handler called when form is in process of submitting */
    onSubmitting: VoidFunc<boolean>;
    /** Event handler called when submission is successful */
    onSubmitSuccess: VoidFuncNoParam;
    /** Optional flag to hide the submit button */
    submitHidden?: boolean;
    /** Optional callback to control whether the submit button is enabled */
    setIsButtonEnabled?: VoidFunc<boolean>;
    /** Optional flag indicating if user should be redirected after success */
    rerouteAfterSuccess?: boolean;
    /** Optional Url for redirection after successful payment */
    redirectUrl?: string;
    /** Optional callback to update internal submitting state */
    setIsSubmitting?: VoidFunc<boolean>;
}
