@imgly/plugin-ai-text-generation-web
Version:
AI text generation plugin for the CE.SDK editor
30 lines (29 loc) • 886 B
TypeScript
import { GetQuickActionDefinition } from './types';
/**
* The ID of the quick action.
*/
export declare const ID = "ly.img.shorter";
/**
* The i18n prefix for the quick action.
*/
export declare const I18N_PREFIX = "ly.img.plugin-ai-text-generation-web.quickAction.shorter";
export declare const I18N_DEFAULT_PREFIX = "ly.img.plugin-ai-text-generation-web.defaults.quickAction.shorter";
/**
* The input generated from this quick action which needs
* to be mapped to the specific provider.
*/
export type InputType = {
prompt: string;
};
declare const Shorter: 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 Shorter;