profile-plus
Version:
### IOS
17 lines (16 loc) • 582 B
TypeScript
export declare function generateRandomName(format: string): string;
/**
* Fixes the image path for Android devices during development.
* Replaces 'localhost' with the appropriate site root URL.
* @param croppedImage
* @returns
*/
export declare function replaceLocalhostWithSiteRoot(croppedImage: string): string;
/**
* Generates a unique file name based on the original file name.
* Example: `originalName.jpg` -> `originalName_1633024800000_abcd12.jpg`
*
* @param originalName
* @returns
*/
export declare function generateUniqueFileName(originalName: string): string;