import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
/**
 * Represents a single similar condition (prompt) from the API
 */
export interface ExistingPromptConflictItem {
    id: string;
    reason: string;
    confidence_score: number;
    description: string;
    whentoapply: string;
    whennottoapply: string | null;
    systemPrompt: string;
    topic: string;
}
/**
 * Represents the 'response' object from the API
 */
export interface ExistingPromptCheckResponse {
    is_valid_db: boolean;
    similar_conditions: ExistingPromptConflictItem[];
    conflicting_conditions: any[];
}
/**
 * Custom hook to check for conflicts with existing prompt rules in the database.
 * @param baseUrl The base URL for the API.
 * @returns An object with a function to trigger the check, loading state, and any conflicts found.
 */
declare const useExistingPromptCheck: (baseUrl: string) => {
    checkExistingPromptRules: (currentState: IFormState, templateTitle: string, templateDescription: string, modelName: string) => Promise<void>;
    isLoading: boolean;
    existingPromptConflicts: ExistingPromptCheckResponse | null;
    error: Error | null;
    clearExistingPromptConflicts: () => void;
};
export default useExistingPromptCheck;
//# sourceMappingURL=useExistingPromptCheck.d.ts.map