import { testImages } from "./mock-data.js";
const mockAiRequestService = () => ({
  fetchPrompt: () => new Promise((res) => {
    setTimeout(() => {
      res({ type: "SUCCESS", results: ["Lorem ipsum"] });
    }, 2e3);
  }),
  fetchImagePrompt: async () => {
    const url = `https://static.wixstatic.com/media/${testImages[Math.floor(Math.random() * testImages.length)].url}`;
    const blob = await fetch(url).then((response) => response.blob());
    return {
      type: "SUCCESS",
      results: {
        url,
        blob
      }
    };
  },
  fetchPromptFromSelection: () => new Promise((res) => {
    setTimeout(() => {
      res({
        type: "SUCCESS",
        results: ["Lorem ipsum dolor sit amet, consectetur adipiscing elit."]
      });
    }, 2e3);
  })
});
export {
  mockAiRequestService
};
//# sourceMappingURL=mock-ai-request-service.js.map
