export interface PatternCard {
    patternId: string;
    name: string;
    category: 'orchestration' | 'workflow' | 'rag' | 'retrieval' | 'integration' | 'evaluation' | 'crew';
    summary: string;
    instructions: string;
    tags: string[];
    stages: string[];
    suggestedSkills: string[];
    suggestedWorkflows: string[];
    suggestedHooks: string[];
    suggestedAutomations: string[];
    suggestedCrews: string[];
    suggestedSpecialists: string[];
    confidence: number;
    successCount: number;
    failureCount: number;
    lastUsedAt?: number;
    patternPack?: {
        kind: 'flow-kit';
        flows: string[];
        starterFiles: Array<{
            path: string;
            purpose: string;
        }>;
        memorySeeds: string[];
        lifecycle: string[];
        acceptanceChecks: string[];
        antiPatterns: string[];
    };
}
export interface PatternSearchResult extends PatternCard {
    score: number;
}
export declare class PatternRegistry {
    private readonly statePath;
    private readonly cards;
    private ngramIndex;
    constructor(stateRoot?: string);
    private indexAllCards;
    list(): PatternCard[];
    search(query: string, limit?: number): PatternSearchResult[];
    recordOutcome(patternId: string, success: boolean): void;
    private loadCards;
    private persist;
    private persistCards;
}
