lexical-ai-plugin
Version:
This plugin is built to be used with Cloudflare Workers. In order to use this plugin, deploy this [Code](https://github.com/akadotsh/lexical-ai-worker) to Cloudflare.
14 lines (11 loc) • 435 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import React from 'react';
import { LexicalCommand } from 'lexical';
declare const COPY: LexicalCommand<string>;
declare const PASTE: LexicalCommand<string>;
type Props = {
apiKey: string;
parentRef: React.RefObject<HTMLDivElement>;
};
declare function AIPlugin({ apiKey, parentRef }: Props): react_jsx_runtime.JSX.Element;
export { COPY, PASTE, AIPlugin as default };