use-vibes
Version:
Transform any DOM element into an AI-powered micro-app
19 lines (18 loc) • 774 B
TypeScript
import { ImageGenOptions as BaseImageGenOptions, ImageResponse } from 'call-ai';
import { ImageDocument } from './types';
interface ImageGenOptions extends BaseImageGenOptions {
_regenerationId?: number;
images?: File[];
document?: Partial<ImageDocument>;
debug?: boolean;
}
/**
* Wrapper for imageGen that prevents duplicate calls
* This function maintains a module-level cache to prevent duplicate API calls
*/
export declare function imageGen(prompt: string, options?: ImageGenOptions): Promise<ImageResponse>;
/**
* Create a wrapper function for generating images with logging and tracking
*/
export declare function createImageGenerator(requestHash: string): (promptText: string, genOptions?: ImageGenOptions) => Promise<ImageResponse>;
export {};