/**
 * Phase 2 Pipeline -- Stage 3: SPARC Specification
 *
 * Generates all 5 SPARC phases (Specification, Pseudocode, Architecture,
 * Refinement, Completion) as natural-language markdown documents following
 * the ruvnet/sparc methodology (https://github.com/ruvnet/sparc).
 *
 * Content is WRITTEN dynamically from the user's original prompt and
 * Phase 1/2 artifacts — NOT pattern-matched from hardcoded templates.
 *
 * The markdown documents are the primary output. A sparc-combined.json
 * compatibility shim is also written for downstream Phase 4/5 consumers.
 *
 * Error codes:
 *   ECLI-P2-010  Research dossier not available on context
 *   ECLI-P2-011  SPARC file write failure
 */
import type { Phase2Context, Phase2StageOutput, ResearchDossier, Phase1Artifacts, Phase2SPARCOutput } from '../types.js';
/**
 * Detect whether the user's query requires intelligence/ML/analytics contexts.
 * Returns keywords found and suggested intelligence context names.
 */
export declare function detectIntelligenceRequirements(query: string): {
    hasIntelligence: boolean;
    keywords: string[];
    suggestedContexts: Array<{
        name: string;
        type: 'ml-inference' | 'analytics' | 'anomaly-detection' | 'forecasting' | 'data-pipeline';
        commands: string[];
        description: string;
    }>;
};
export declare function buildPhase2SPARC(dossier: ResearchDossier, artifacts: Phase1Artifacts): Phase2SPARCOutput;
/**
 * Stage 3 entry point: generate SPARC specification from the research dossier
 * and Phase 1 artifacts stored on the pipeline context.
 *
 * Writes 5 SPARC markdown documents + JSON compatibility files to
 * `context.phase2Dir/sparc/`.
 */
export declare function generateSPARCSpecification(context: Phase2Context): Promise<Phase2StageOutput>;
//# sourceMappingURL=sparc-specification.d.ts.map