@imgly/plugin-ai-generation-web
Version:
AI generation plugin for the CE.SDK editor
17 lines (16 loc) • 1.04 kB
TypeScript
import { type BuilderRenderFunctionContext } from '@cesdk/cesdk-js';
import type Provider from '../../core/provider';
import { type GetInput, type OutputKind, type Output, type GetBlockInput } from '../../core/provider';
import { UIOptions, CommonConfiguration } from '../../types';
import { Generate } from '../../generation/createGenerateFunction';
export declare function isGeneratingStateKey(providerId: string): string;
export declare function abortGenerationStateKey(providerId: string): string;
/**
* Renders the generation UI components and sets up event handlers
*/
declare function renderGenerationComponents<K extends OutputKind, I, O extends Output>(context: BuilderRenderFunctionContext<any>, provider: Provider<K, I, O>, generate: Generate<I, O>, getInput: GetInput<I>, getBlockInput: GetBlockInput<K, I>, options: UIOptions & {
createPlaceholderBlock?: boolean;
includeHistoryLibrary?: boolean;
requiredInputs?: string[];
}, config: CommonConfiguration<I, O>): void;
export default renderGenerationComponents;