@imgly/plugin-ai-generation-web
Version:
AI generation plugin for the CE.SDK editor
20 lines (19 loc) • 615 B
TypeScript
import { Middleware } from './middleware';
import { Output } from '../core/provider';
/**
* Highlights the blocks while the middleware is running.
*/
declare function lockMiddleware<I, O extends Output>({ editMode, automaticallyUnlock }: {
/**
* The edit mode to lock the selection to.
*/
editMode: string;
/**
* Should the selection be automatically unlocked after the function completes?
* Otherwise the returned unlock function must be called manually.
*
* @default false
*/
automaticallyUnlock?: boolean;
}): Middleware<I, O>;
export default lockMiddleware;