/**
 * Pattern Memory system for CLEO BRAIN.
 *
 * Extracts, stores, and queries workflow/blocker/success/failure/optimization
 * patterns from completed tasks and epics.
 *
 * Storage: SQLite brain_patterns table per ADR-009 Section 3.2.
 *
 * @task T4768, T5241
 * @epic T4763
 */
/** Pattern types from ADR-009. */
export type PatternType = 'workflow' | 'blocker' | 'success' | 'failure' | 'optimization';
/** Impact level. */
export type PatternImpact = 'low' | 'medium' | 'high';
/** Parameters for storing a new pattern. */
export interface StorePatternParams {
    type: PatternType;
    pattern: string;
    context: string;
    impact?: PatternImpact;
    antiPattern?: string;
    mitigation?: string;
    examples?: string[];
    successRate?: number;
}
/** Parameters for searching patterns. */
export interface SearchPatternParams {
    type?: PatternType;
    impact?: PatternImpact;
    query?: string;
    minFrequency?: number;
    limit?: number;
}
/**
 * Store a new pattern.
 * If a similar pattern already exists (same type + matching text), increments frequency.
 * @task T4768, T5241
 */
export declare function storePattern(projectRoot: string, params: StorePatternParams): Promise<{
    examples: any;
    frequency: number;
    type: "success" | "workflow" | "failure" | "blocker" | "optimization";
    id: string;
    updatedAt: string | null;
    pattern: string;
    context: string;
    successRate: number | null;
    impact: "high" | "medium" | "low" | null;
    antiPattern: string | null;
    mitigation: string | null;
    examplesJson: string | null;
    extractedAt: string;
}>;
/**
 * Search patterns by criteria.
 * @task T4768, T5241
 */
export declare function searchPatterns(projectRoot: string, params?: SearchPatternParams): Promise<{
    examples: any;
    frequency: number;
    type: "success" | "workflow" | "failure" | "blocker" | "optimization";
    id: string;
    updatedAt: string | null;
    pattern: string;
    context: string;
    successRate: number | null;
    impact: "high" | "medium" | "low" | null;
    antiPattern: string | null;
    mitigation: string | null;
    examplesJson: string | null;
    extractedAt: string;
}[]>;
/**
 * Get pattern statistics.
 * @task T4768, T5241
 */
export declare function patternStats(projectRoot: string): Promise<{
    total: number;
    byType: Record<string, number>;
    byImpact: Record<string, number>;
    highestFrequency: {
        pattern: string;
        frequency: number;
    } | null;
}>;
//# sourceMappingURL=patterns.d.ts.map