"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupExportedUrls = void 0;
const setupExportedUrls = (fn) => {
    return (async (effects) => {
        const urls = [];
        await fn({
            effects: {
                ...effects,
                plugin: {
                    ...effects.plugin,
                    url: {
                        ...effects.plugin.url,
                        exportUrl: (params) => {
                            urls.push(params.hostnameInfo);
                            return effects.plugin.url.exportUrl(params);
                        },
                    },
                },
            },
        });
        await effects.plugin.url.clearUrls({ except: urls });
        return null;
    });
};
exports.setupExportedUrls = setupExportedUrls;
//# sourceMappingURL=setupExportedUrls.js.map