@ai-stack/payloadcms
Version:
<p align="center"> <img alt="Payload AI Plugin" src="assets/payload-ai-intro.gif" width="100%" /> </p>
19 lines (18 loc) • 688 B
TypeScript
import type { Field } from 'payload';
import type React from 'react';
import type { SerializedPromptField } from '../../types.js';
export type InstructionsContextValue = {
activeCollection?: string;
debugging?: boolean;
enabledLanguages?: string[];
field?: Field;
hasInstructions: boolean;
instructions: Record<string, any>;
isConfigAllowed: boolean;
path?: string;
promptFields: SerializedPromptField[];
schemaPath?: unknown;
setActiveCollection?: React.Dispatch<React.SetStateAction<string>>;
};
export declare const initialContext: InstructionsContextValue;
export declare const InstructionsContext: React.Context<InstructionsContextValue>;