UNPKG

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

Version:

AI text generation plugin for the CE.SDK editor

30 lines (29 loc) 881 B
import { GetQuickActionDefinition } from './types'; /** * The ID of the quick action. */ export declare const ID = "ly.img.longer"; /** * The i18n prefix for the quick action. */ export declare const I18N_PREFIX = "ly.img.plugin-ai-text-generation-web.quickAction.longer"; export declare const I18N_DEFAULT_PREFIX = "ly.img.plugin-ai-text-generation-web.defaults.quickAction.longer"; /** * The input generated from this quick action which needs * to be mapped to the specific provider. */ export type InputType = { prompt: string; }; declare const Longer: GetQuickActionDefinition<InputType>; /** * Extend TextQuickActionInputs with this action's input type. * This will ensure that the types are correctly recognized * in the TextProvider. */ declare module '../types' { interface TextQuickActionInputs { [ID]: InputType; } } export default Longer;