"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const sassImportEntry_1 = require("./importer/sassImportEntry");
const importEntryFactory = (entry) => {
    function importEntryFactory(...args) {
        if (args.length === 1) {
            entry.makeImport(args[0]);
        }
        else {
            const [rel, abs, source, sourceMap] = args;
            entry.makeImporter(rel, abs, source, sourceMap);
        }
        return entry;
    }
    return importEntryFactory;
};
const buildImporter = (cwrapImporter, interop, fnPtrHandler) => {
    return {
        importEntry: {
            create: importEntryFactory(new sassImportEntry_1.SassImportEntry(cwrapImporter, interop, fnPtrHandler))
        }
    };
};
exports.buildImporter = buildImporter;
//# sourceMappingURL=importer.js.map