import { ApiRequestOptions } from './client.js'; import { PromoValidationResponse } from './types.js'; /** * Validate a promo code for an event * * Checks if a promo code is valid and returns its effects: * - Discount amount and type * - Hidden ticket reveal * * @param eventId - The event ID * @param code - The promo code to validate * @returns Validation result with discount info */ export declare function validatePromoCode(eventId: string | number, code: string, req?: Pick): Promise; /** * Check if promo codes are available for an event * * Used to conditionally show/hide the promo code input field. * * @param eventId - The event ID * @returns Whether promo codes exist for this event */ export declare function hasPromoCodes(eventId: string | number, req?: Pick): Promise; /** * Apply a promo code to a cart * * This updates the cart with the promo code discount. * * @param cartId - The cart UUID * @param code - The promo code to apply * @returns Success status */ export declare function applyPromoCode(cartId: string, code: string, productQuantities?: Record, req?: Pick): Promise<{ success: boolean; error?: string; }>; /** * Remove a promo code from a cart * * @param cartId - The cart UUID * @returns Success status */ export declare function removePromoCode(cartId: string, req?: Pick): Promise<{ success: boolean; error?: string; }>;