import { dataHook } from "./../../wix-rich-content-common/index.js";
import { DATA_HOOKS, SKETCH_DATA_HOOK } from "./data-hooks.js";
const createSketchTestkit = (getBase) => {
  const getAtIndex = (index) => getBase().$$(dataHook(SKETCH_DATA_HOOK)).get(index);
  const getByHook = (hook) => getBase().$(dataHook(hook));
  return {
    content: {
      atIndex: (index) => ({
        exists: async () => getAtIndex(index).exists()
      }),
      designModalExists: async () => getByHook(DATA_HOOKS.DESIGN_MODAL).exists(),
      clickStyle: async (style) => {
        await getByHook(DATA_HOOKS[style]).click();
      },
      toggleAnimated: async () => {
        await getByHook(DATA_HOOKS.ANIMATED_TOGGLE).click();
      }
    }
  };
};
export {
  createSketchTestkit
};
//# sourceMappingURL=testkit.js.map
