@liquidcommerceteam/elements-sdk
Version:
LiquidCommerce Elements SDK
12 lines (11 loc) • 536 B
TypeScript
export declare function formatCentToDollarText(cent: number, showZeroDecimals?: boolean): string;
/**
* Converts 24-hour time format to 12-hour format with AM/PM
*/
export declare function format24TimeTo12(time24h: string): string;
export declare function formatISODateToMMDDYYYY(isoDateString: string | null | undefined): string;
export declare function validateMinimumAge(birthDate: string | Date | null | undefined, minimumAge?: number, minimumYear?: number): {
isValid: boolean;
age: number | null;
error?: string;
};