import { dataHook } from "./../../wix-rich-content-common/index.js";
const createPromptInputAreaUniDriver = (getBase, dataHookValue) => {
  const getTextarea = async () => {
    return getBase().$(dataHook(dataHookValue));
  };
  return {
    exists: async () => {
      const textarea = await getTextarea();
      return textarea.exists();
    },
    enterText: async (text) => {
      const textarea = await getTextarea();
      await textarea.enterValue(text);
    },
    submitByEnter: async () => {
      const textarea = await getTextarea();
      await textarea.pressKey("Enter");
    }
  };
};
export {
  createPromptInputAreaUniDriver
};
//# sourceMappingURL=prompt-input-area-unidriver.js.map
