/** * Stripe Bubble Utility Functions * * Helper functions for Stripe API interactions and data formatting. */ /** * Format amount from smallest currency unit to display format * @param amount Amount in smallest currency unit (e.g., cents) * @param currency Three-letter ISO currency code * @returns Formatted currency string */ export declare function formatStripeAmount(amount: number, currency: string): string; /** * Convert display amount to Stripe smallest currency unit * @param displayAmount Amount in display format (e.g., 10.99) * @param currency Three-letter ISO currency code * @returns Amount in smallest currency unit */ export declare function toStripeAmount(displayAmount: number, currency: string): number; /** * Format Unix timestamp to human-readable date * @param timestamp Unix timestamp in seconds * @returns Formatted date string */ export declare function formatStripeTimestamp(timestamp: number): string; /** * Validate Stripe ID format * @param id Stripe object ID * @param prefix Expected prefix (e.g., 'cus', 'prod', 'price') * @returns Whether the ID is valid */ export declare function isValidStripeId(id: string, prefix: string): boolean; /** * Enhance Stripe API error messages with helpful hints * @param error Original error message * @param statusCode HTTP status code * @returns Enhanced error message */ export declare function enhanceStripeErrorMessage(error: string, statusCode?: number): string; //# sourceMappingURL=stripe.utils.d.ts.map