/** * Structure validator - validates spec structure and required sections * * Phase 2: Structure Validation * - Must have title (H1 heading) * - Must have required sections * - No empty required sections * - No duplicate section headers at same level */ import type { ValidationRule, ValidationResult } from '../utils/validation-framework.js'; import type { SpecInfo } from '../types/index.js'; export interface StructureOptions { requiredSections?: string[]; strict?: boolean; } export declare class StructureValidator implements ValidationRule { name: string; description: string; private requiredSections; private strict; constructor(options?: StructureOptions); validate(spec: SpecInfo, content: string): Promise; /** * Extract all headings from markdown content (excluding code blocks) */ private extractHeadings; /** * Find empty sections (sections with no content until next heading) */ private findEmptySections; /** * Find duplicate headers at the same level */ private findDuplicateHeaders; } //# sourceMappingURL=structure.d.ts.map