import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
export interface ExistingConflictItem {
    id: string;
    ui_name: string;
    title: string;
    description: string;
    when_to_use: string;
    when_not_to_use: string | null;
    reason: string;
    confidence_score: number;
}
export interface ExistingCheckResponse {
    is_valid_db: boolean;
    similar_conditions: ExistingConflictItem[];
}
/**
 * Custom hook to check for conflicts with existing agent rules in the database.
 * @returns An object with a function to trigger the check, loading state, and any conflicts found.
 */
declare const useExistingAgentCheck: (baseUrl: string) => {
    checkExistingRules: (currentState: IFormState, agentId: string | null, assistantName: string, organizationName: string) => Promise<void>;
    isLoading: boolean;
    existingConflicts: ExistingCheckResponse | null;
    error: Error | null;
    clearExistingAgentConflicts: () => void;
};
export default useExistingAgentCheck;
//# sourceMappingURL=useExistingAgentCheck.d.ts.map