class StylesheetManager {
    constructor(options) {
        this.trackedStylesheets = new WeakSet();
        this.mutationCb = options.mutationCb;
    }
    addStylesheet(linkEl) {
        if (this.trackedStylesheets.has(linkEl))
            return;
        this.trackedStylesheets.add(linkEl);
        this.trackStylesheet(linkEl);
    }
    trackStylesheet(linkEl) {
    }
    attachStylesheet(linkEl, childSn, mirror) {
        this.mutationCb({
            adds: [
                {
                    parentId: mirror.getId(linkEl),
                    nextId: null,
                    node: childSn,
                },
            ],
            removes: [],
            texts: [],
            attributes: [],
        });
        this.addStylesheet(linkEl);
    }
}

export { StylesheetManager };
