/**
 * Spec to Living Docs Sync
 *
 * Synchronizes AC checkbox states and task completion from increment spec.md
 * to all corresponding living docs US files.
 *
 * This is the CRITICAL MISSING LINK in the sync chain:
 * tasks.md → spec.md → living docs → external tools (GitHub/JIRA/ADO)
 *
 * @module sync/spec-to-living-docs-sync
 */
import { Logger } from '../utils/logger.js';
/**
 * AC state from spec.md
 */
export interface ACState {
    acId: string;
    checked: boolean;
    description: string;
}
/**
 * Task state from tasks.md
 */
export interface TaskState {
    taskId: string;
    completed: boolean;
    userStory?: string;
}
/**
 * Result of syncing a single US file
 */
export interface USFileSyncResult {
    filePath: string;
    updated: boolean;
    acsUpdated: number;
    tasksUpdated: number;
    statusChanged: boolean;
    error?: string;
}
/**
 * Overall sync result
 */
export interface SpecToLivingDocsSyncResult {
    success: boolean;
    filesProcessed: number;
    filesUpdated: number;
    totalACsUpdated: number;
    totalTasksUpdated: number;
    results: USFileSyncResult[];
    errors: string[];
}
/**
 * Options for spec-to-living-docs sync
 */
export interface SpecToLivingDocsSyncOptions {
    projectRoot: string;
    incrementId: string;
    logger?: Logger;
    dryRun?: boolean;
}
/**
 * SpecToLivingDocsSync - Syncs AC/task completion from spec.md to living docs
 */
export declare class SpecToLivingDocsSync {
    private readonly projectRoot;
    private readonly incrementId;
    private readonly logger;
    private readonly dryRun;
    constructor(options: SpecToLivingDocsSyncOptions);
    /**
     * Main sync method - orchestrates the entire sync process
     */
    sync(): Promise<SpecToLivingDocsSyncResult>;
    /**
     * Parse ACs from spec.md
     */
    private parseSpecACs;
    /**
     * Parse task states from tasks.md
     */
    private parseTaskStates;
    /**
     * Find all living docs US files for this increment
     */
    private findLivingDocsUSFiles;
    /**
     * Sync a single US file
     */
    private syncUSFile;
}
//# sourceMappingURL=spec-to-living-docs-sync.d.ts.map