export const OverflowMixin = (superClass) => {
    class InnerMixinClass extends superClass {
        /**
         * Gets the element whose overflow will be monitored.
         *
         * @internal
         */
        get overflowElement() {
            return this;
        }
        /**
         * Determines if the content of the overflow element is overflowing its width.
         *
         * @returns True if the scroll width of the overflow element is greater than its client width.
         */
        isWidthOverflowing() {
            const el = this.overflowElement;
            return el.scrollWidth > el.clientWidth;
        }
        isHeightOverflowing() {
            return this.scrollHeight > this.clientHeight;
        }
    }
    // Cast return type to your mixin's interface intersected with the superClass type
    return InnerMixinClass;
};
