import { buttonCoreDriverFactory, } from '../Button/ButtonCore/ButtonCore.uni.driver';
import { isElementFocused, baseUniDriverFactory, } from '../utils/test-utils/unidriver';
export const iconButtonDriverFactory = (base) => {
    const buttonDriver = buttonCoreDriverFactory(base);
    return {
        ...baseUniDriverFactory(base),
        /** returns true if button disabled */
        isButtonDisabled: buttonDriver.isButtonDisabled,
        /**
         * Checks whether button is focused
         * @returns {Promise<boolean>}
         */
        isFocused: async () => isElementFocused(base),
    };
};
//# sourceMappingURL=IconButton.uni.driver.js.map