/** * Buffer conversion utilities for Next.js 15+ compatibility * Next.js 15 changed body/rscData from strings to Buffers */ /** * Convert a value to base64 string if it's a Buffer * Used when storing cache values (e.g., in Redis) * * @param value - Value that might be a Buffer * @returns Base64 string if Buffer, original value otherwise */ export declare function bufferToString(value: unknown): unknown; /** * Convert a base64 string back to Buffer if it was originally a Buffer * Used when retrieving cache values (e.g., from Redis) * * This is a simplified version - in production you'd need to track * which fields were originally Buffers * * @param value - Value that might be a base64 string * @param isBuffer - Whether this value should be converted to Buffer * @returns Buffer if isBuffer is true, original value otherwise */ export declare function stringToBuffer(value: string, isBuffer: boolean): Buffer | string; //# sourceMappingURL=buffer.d.ts.map