/** * Convert Base64 string to Uint8Array * @param {string} base64 - Base64 encoded string * @returns {Uint8Array} - Decoded binary data */ export declare function base64ToUint8Array(base64: string): Uint8Array; /** * Convert Uint8Array to Base64 string * @param {Uint8Array} uint8Array - Binary data * @returns {string} - Base64 encoded string */ export declare function uint8ArrayToBase64(uint8Array: Uint8Array): string; /** * Convert Blob to Base64 string (alternative implementation using arrayBuffer) * @param {Blob} blob - Blob object to convert * @returns {Promise} - Promise that resolves to Base64 encoded string */ export declare function blobToBase64(blob: Blob): Promise; /** * Create a blob URL from a Uint8Array for displaying images * @param {Uint8Array} uint8Array - Binary image data * @param {string} mimeType - MIME type of the image * @returns {string} - Blob URL that can be used in img.src */ export declare function createImageBlobUrl(uint8Array: Uint8Array, mimeType?: string): string; /** * Create a data URL directly from a Base64 string * @param {string} base64 - Base64 encoded image data * @param {string} mimeType - MIME type of the image * @returns {string} - Data URL that can be used in img.src */ export declare function createImageDataUrlFromBase64(base64: string, mimeType?: string): string; /** * Process the UploadReadyData object by converting Base64 strings to Uint8Arrays * @param {any} uploadData - The parsed JSON upload data * @returns {any} - Processed upload data with typed arrays */ export declare function processUploadReadyData(uploadData: any): any; /** * Get mime type based on the first few bytes of a binary file * This is a simple implementation that handles common image formats * @param {Uint8Array} data - The binary data * @returns {string} - The detected MIME type or default 'application/octet-stream' */ export declare function detectMimeType(data: Uint8Array): string; /** * Creates an optimal image blob URL based on the image data * Detects the MIME type from the data * @param {Uint8Array} imageData - The binary image data * @returns {string} - A blob URL for the image */ export declare function createOptimalImageUrl(imageData: Uint8Array): string; /** * Creates an optimal image blob URL directly from Base64 data * @param {string} base64 - Base64 encoded image data * @returns {string} - A blob URL for the image */ export declare function createOptimalImageUrlFromBase64(base64: string): string; //# sourceMappingURL=binary-helpers.d.ts.map