UNPKG

@imgly/plugin-ai-generation-web

Version:

AI generation plugin for the CE.SDK editor

17 lines (16 loc) 721 B
import CreativeEditorSDK, { BuilderRenderFunction } from '@cesdk/cesdk-js'; import { OutputKind } from '../../core/provider'; import { Callbacks } from '../../generation/CallbacksRegistry'; /** * Creates a render function for the AI inference confirmation component. * * It will render 'cancel', 'before', 'after', and 'apply' buttons once the * inference is done. Until then a loading spinner is shown with a cancel button. * * The callbacks are provided by the payload from the context. */ declare function createConfirmationRenderFunction<K extends OutputKind>(context: { kind: K; cesdk: CreativeEditorSDK; }): Promise<BuilderRenderFunction<Callbacks>>; export default createConfirmationRenderFunction;