import type { CommonAnswer, GptRequestData } from "../ErrorScreen/types.js"; import type { GptDialogProps } from "../GptDialog/GptDialog.js"; type UseGptProps = Pick, 'markup' | 'promptPresets' | 'onCustomPromptApply' | 'onPromptPresetClick' | 'onTryAgain' | 'onLike' | 'onDislike' | 'onApplyResult' | 'onUpdate'>; export declare const useGpt: ({ markup, promptPresets, onCustomPromptApply, onPromptPresetClick, onTryAgain, onLike, onDislike, onApplyResult, onUpdate, }: UseGptProps) => { answer: AnswerData | undefined; customPrompt: string; lastRequestData: GptRequestData | undefined; loading: boolean; error: boolean; mode: "custom-and-presets" | "only-custom" | "only-presets"; feedbackType: "dislike" | "like" | undefined; feedbackTypeLoading: "dislike" | "like" | undefined; handleLike: () => Promise; handleDislike: () => Promise; handleCustomPromptUpdate: import("react").Dispatch>; handleCustomPromptKeyPress: import("react").KeyboardEventHandler; handleCustomPromptApply: () => Promise; handlePresetClick: (data?: PromptData | undefined) => void; handleTryAgain: () => Promise; handleFreshStart: () => void; handleApplyResult: () => void; showTryAgainButton: boolean; showAnswer: boolean; showError: boolean; showAnswerActions: boolean | undefined; }; export {};