import { buttonCoreDriverFactory, } from '../Button/ButtonCore/ButtonCore.uni.driver';
import { baseUniDriverFactory } from '../utils/test-utils/unidriver';
export const closeButtonDriverFactory = (base) => {
    const buttonDriver = buttonCoreDriverFactory(base);
    return {
        ...baseUniDriverFactory(base),
        /** Checks whether the button is disabled
         * @returns {Promise<boolean>}
         * */
        isButtonDisabled: buttonDriver.isButtonDisabled,
        /** Returns the aria-label attribute of the button
         * @returns {Promise<string | null>}
         * */
        getAriaLabel: async () => base.attr('aria-label'),
    };
};
//# sourceMappingURL=CloseButton.uni.driver.js.map