/**
 * Quality Prediction module for the CLEO Intelligence dimension.
 *
 * Provides risk scoring for tasks based on complexity, historical patterns,
 * and blocking analysis. Also predicts lifecycle gate validation outcomes
 * using brain_patterns and brain_learnings data.
 *
 * Uses the existing BrainDataAccessor and DataAccessor — no new tables.
 *
 * @task Wave3A
 * @epic T5149
 */
import type { Task } from '@cleocode/contracts';
import type { BrainDataAccessor } from '../store/brain-accessor.js';
import type { DataAccessor } from '../store/data-accessor.js';
import type { LearningContext, RiskAssessment, ValidationPrediction } from './types.js';
/**
 * Calculate the risk score for a task based on multiple contributing factors.
 *
 * Factors considered:
 * - Task complexity (size, dependency count, hierarchy depth)
 * - Historical patterns (similar tasks' failure rates from brain_patterns)
 * - Blocking risk (does this task block others?)
 * - Dependency depth (how deep in the dependency chain)
 *
 * @param taskId - The task to assess
 * @param taskAccessor - DataAccessor for tasks.db
 * @param brainAccessor - BrainDataAccessor for brain.db
 * @returns A complete risk assessment with score, confidence, factors, and recommendation
 */
export declare function calculateTaskRisk(taskId: string, taskAccessor: DataAccessor, brainAccessor: BrainDataAccessor): Promise<RiskAssessment>;
/**
 * Predict the likelihood of a task passing a lifecycle validation gate.
 *
 * Combines:
 * - Historical gate results for similar tasks (from brain_patterns)
 * - Current task completion state
 * - Applicable learnings from brain_learnings
 *
 * @param taskId - The task to evaluate
 * @param stage - The lifecycle stage (e.g., "specification", "implementation")
 * @param taskAccessor - DataAccessor for tasks.db
 * @param brainAccessor - BrainDataAccessor for brain.db
 * @returns Prediction with pass likelihood, blockers, and suggestions
 */
export declare function predictValidationOutcome(taskId: string, stage: string, taskAccessor: DataAccessor, brainAccessor: BrainDataAccessor): Promise<ValidationPrediction>;
/**
 * Gather applicable learnings for a task from brain_learnings.
 */
export declare function gatherLearningContext(task: Task, brainAccessor: BrainDataAccessor): Promise<LearningContext>;
//# sourceMappingURL=prediction.d.ts.map