"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.readDropEventItemsAsText = readDropEventItemsAsText;
const drag_1 = require("./event/drag");
async function readDropEventItemsAsText(event) {
    const { dataTransfer } = event;
    const { items } = dataTransfer;
    const promises = [];
    for (let i = 0; i < items.length; i++) {
        const item = items[i];
        promises.push((0, drag_1.readDataTransferItemAsText)(item));
    }
    const texts = await Promise.all(promises);
    return texts;
}
//# sourceMappingURL=drag.js.map