@imgly/plugin-ai-generation-web
Version:
AI generation plugin for the CE.SDK editor
15 lines (14 loc) • 409 B
TypeScript
import { Middleware } from './middleware';
import { Output } from '../core/provider';
/**
* Sets the blocks to a pending state while the middleware is running.
*/
declare function pendingMiddleware<I, O extends Output>({ enable }: {
/**
* Should the blocks be set to a pending state?
*
* @default true
*/
enable?: boolean;
}): Middleware<I, O>;
export default pendingMiddleware;