/**
 * Phase 5 Quality Gate: Implementation Prompt Validator
 *
 * Validates implementation prompts before ruflo swarm execution.
 * Ensures prompts contain enough domain context for non-generic code.
 * Injects cloud provider, typed fields, and realistic test data.
 *
 * Runs AFTER prior-phase-loading and BEFORE domain-codegen, checking
 * that the merged phase2 artifacts (DDD model, ADRs, SPARC spec)
 * provide sufficient signal for the ruflo swarm to generate
 * domain-specific (not template-generic) implementation code.
 *
 * Error codes:
 *   ECLI-P5-030  Implementation prompt quality too low for code generation
 *   ECLI-P5-031  Required phase artifacts not available for validation
 */
import type { Phase5BuildContext, Phase5BuildStage } from '../types.js';
export interface ImplementationQualityReport {
    readonly passed: boolean;
    readonly score: number;
    readonly issues: string[];
    readonly cloudProviderDetected: string | null;
    readonly typedFieldsFound: number;
    readonly domainCommandsFound: number;
    readonly genericCRUDDetected: number;
    readonly testDataExamplesFound: number;
    readonly databaseDialectDetected: string | null;
    readonly recordUnknownPatterns: number;
    readonly missingArtifacts: string[];
}
export interface ImplementationStageOutput {
    readonly stage: Phase5BuildStage;
    readonly status: 'completed' | 'failed';
    readonly timing: number;
    readonly artifacts: string[];
    readonly summary: string;
    readonly data: ImplementationQualityReport;
}
/**
 * Validate implementation artifacts quality before ruflo swarm execution.
 */
export declare function validateImplementationQuality(corpus: string, missingArtifacts: string[]): ImplementationQualityReport;
/**
 * Execute the implementation quality gate as a Phase 5 pipeline stage.
 *
 * Scans the merged phase2 artifacts directory for domain context signals
 * and validates that enough information is present for non-generic code
 * generation by the ruflo swarm.
 *
 * @param context - Phase 5 build context with directory paths
 * @returns Stage output indicating pass or fail with actionable issues
 */
export declare function executeImplementationQualityGate(context: Phase5BuildContext): Promise<ImplementationStageOutput>;
//# sourceMappingURL=implementation-quality-gate.d.ts.map