UNPKG

use-vibes

Version:

Transform any DOM element into an AI-powered micro-app

13 lines (12 loc) 599 B
import { UseImageGenOptions, UseImageGenResult } from './types'; /** * Hook for generating images with call-ai's imageGen * Provides automatic caching, reactive updates, and progress handling * * The hook allows for two modes of operation: * 1. Generate a new image with a prompt (no _id provided) * 2. Load or update an existing image document (_id provided) */ export declare function useImageGen({ prompt, _id, options, database, skip, // Skip processing flag generationId, // Unique ID that changes for each new generation request editedPrompt, }: UseImageGenOptions): UseImageGenResult;