UNPKG

@imgly/plugin-ai-image-generation-web

Version:

AI image generation plugin for the CE.SDK editor

40 lines (39 loc) 1.16 kB
import { QuickActionDefinition } from '@imgly/plugin-ai-generation-web'; import CreativeEditorSDK from '@cesdk/cesdk-js'; /** * The ID of the quick action. */ export declare const ID = "ly.img.gpt-image-1.changeStyleLibrary"; /** * The i18n prefix for the quick action. */ export declare const I18N_PREFIX = "ly.img.plugin-ai-image-generation-web.quickAction.gpt-image-1.changeStyleLibrary"; /** * The input generated from this quick action which needs * to be mapped to the specific provider. */ export type InputType = { prompt: string; uri: string; }; /** * Function to create the ChangeStyleLibrary quick action. */ declare const ChangeStyleLibrary: (context: { cesdk: CreativeEditorSDK; modelKey: string; baseURL?: string; }) => QuickActionDefinition<InputType>; /** * Extend ImageQuickActionInputs with this action's input type. * This will ensure that the types are correctly recognized * in the ImageProvider. * * COPY this file to other quick action to support type safety */ declare module '../../types' { interface ImageQuickActionInputs { [ID]: InputType; } } export default ChangeStyleLibrary;