@ai-stack/payloadcms
Version:
<p align="center"> <img alt="Payload AI Plugin" src="assets/payload-ai-intro.gif" width="100%" /> </p>
14 lines (13 loc) • 369 B
TypeScript
import type { ActionMenuItems } from '../../../types.js';
type ActionCallbackParams = {
action: ActionMenuItems;
params?: unknown;
};
export declare const useGenerate: ({ instructionId }: {
instructionId: string;
}) => {
generate: (options?: ActionCallbackParams) => Promise<void | Response>;
isLoading: boolean;
stop: () => void;
};
export {};