"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uploadTextToBucket = uploadTextToBucket;
/**
 * Sube contenido de texto directamente a un bucket de GCS.
 * @param bucket Instancia de Bucket
 * @param destination Ruta destino dentro del bucket (incluye carpeta/nombre)
 * @param textContent Contenido textual a subir
 */
async function uploadTextToBucket(bucket, destination, textContent) {
    const file = bucket.file(destination);
    await file.save(textContent, {
        resumable: false,
        contentType: "text/plain",
    });
    console.log(`✅ Texto subido a gs://${bucket.name}/${destination}`);
}
