/** * Mã hóa chuỗi thành Base64 (có hỗ trợ ký tự đặc biệt qua encodeURI) * @param value Chuỗi cần mã hóa * @returns Chuỗi đã mã hóa Base64 */ export declare const base64Encode: (value: string) => string; /** * Giải mã chuỗi Base64 (có hỗ trợ ký tự đặc biệt qua decodeURI) * @param value Chuỗi Base64 cần giải mã * @returns Chuỗi đã giải mã */ export declare const base64Decode: (value: string) => string; /** * Chuyển đổi dữ liệu Base64 thành Blob * @param dataBase64 Dữ liệu Base64 (có thể bao gồm marker ;base64,) * @returns Blob tương ứng */ export declare const convertBase64ToBlob: (dataBase64: string) => Blob; /** * Chuyển đổi File thành Base64 string hoặc Object URL tùy loại file * @param file Đối tượng File cần chuyển đổi * @returns Nếu là ảnh, trả về Base64 string. Ngược lại trả về Object URL. */ export declare const convertFileToBase64_ObjectUrl: (file: File) => Promise; /** * Chuyển đổi File thành Base64 string * @param file Đối tượng File cần chuyển đổi * @returns Promise chứa chuỗi Base64 */ export declare const convertFileToBase64: (file: File) => Promise;