This creates an ExtensionManagerInstance object that manages all the extensions and how they interact with the entries in the entry tree, it expects an CreateExtensionManagerOptions as argument.

const entryTree = createEntryTree();

const extensionManager = createExtensionManager({ entryTree });
extensionManager.extensions = [
    // extensions here
];