import { type FileSectionReference, type SubmitChatOptions, type SubmitFeedbackOptions } from '@xrpl/ai-core'; import { type UseFeedbackResult } from '../feedback/useFeedback.js'; export type PromptLoadingState = 'indeterminate' | 'preload' | 'streaming-answer' | 'done'; export interface UsePromptOptions { /** Display debug info */ debug?: boolean; /** Enable and configure feedback functionality */ feedbackOptions?: Omit; /** Markprompt project key */ projectKey: string; /** Enable and configure prompt functionality */ promptOptions?: Omit; } export interface UsePromptResult { answer: string; prompt: string; promptId?: string; references: FileSectionReference[]; state: PromptLoadingState; abort: () => void; setPrompt: (prompt: string) => void; submitPrompt: () => void; submitFeedback: UseFeedbackResult['submitFeedback']; abortFeedbackRequest: UseFeedbackResult['abort']; } export declare function usePrompt({ debug, feedbackOptions, projectKey, promptOptions, }: UsePromptOptions): UsePromptResult; //# sourceMappingURL=usePrompt.d.ts.map