/**
 * Backlog Scanner - Intelligent backlog scanning and ranking
 *
 * Scans .specweave/increments/_backlog/ directory and ranks items
 * by priority, dependencies, and project match.
 *
 * Part of increment 0039: Ultra-Smart Next Command
 *
 * @module core/workflow/backlog-scanner
 * @since v0.22.0
 */
/**
 * Backlog item metadata
 */
export interface BacklogItem {
    /** Increment ID */
    incrementId: string;
    /** Full path to spec.md */
    specPath: string;
    /** Title */
    title: string;
    /** Priority (P0, P1, P2, P3) */
    priority: string;
    /** Project (if multi-project) */
    project?: string;
    /** Dependencies (other increment IDs) */
    dependencies: string[];
    /** Estimated effort (hours or weeks) */
    estimatedEffort?: string;
    /** Creation date */
    created?: string;
}
/**
 * Ranked backlog item with score
 */
export interface RankedBacklogItem extends BacklogItem {
    /** Ranking score (higher = better) */
    score: number;
    /** Ranking explanation */
    reason: string;
}
/**
 * Backlog recommendation
 */
export interface BacklogRecommendation {
    /** Recommended items (top N) */
    items: RankedBacklogItem[];
    /** Total backlog size */
    totalItems: number;
    /** Explanation */
    summary: string;
}
/**
 * Backlog Scanner - Scan and rank backlog items
 */
export declare class BacklogScanner {
    private backlogDir;
    constructor(rootDir?: string);
    /**
     * Scan backlog directory
     */
    scanBacklog(): Promise<BacklogItem[]>;
    /**
     * Parse backlog item from spec.md
     */
    private parseBacklogItem;
    /**
     * Extract primary project from per-US **Project**: fields
     * v0.34.1: New method for ADR-0140
     */
    private extractPrimaryPerUSProject;
    /**
     * Rank backlog items by priority, dependencies, and project match.
     * Scores: Priority (P0=10, P1=7, P2=5, P3=3), Dependencies met +5, Project match +3, Recent +2
     */
    rankItems(items: BacklogItem[], currentProject?: string, completedIncrements?: string[]): RankedBacklogItem[];
    /**
     * Get top N recommendations
     *
     * @param n - Number of recommendations (default: 3)
     * @param currentProject - Current project filter
     * @param completedIncrements - Completed increments
     * @returns Backlog recommendations
     */
    getTopRecommendations(n?: number, currentProject?: string, completedIncrements?: string[]): Promise<BacklogRecommendation>;
}
//# sourceMappingURL=backlog-scanner.d.ts.map