/**
 * Spec-Task Mapper for SpecWeave
 *
 * Maps tasks to spec user stories based on AC-IDs (Acceptance Criteria IDs).
 * Enables traceability from increment tasks back to living docs specs.
 */
export interface UserStory {
    id: string;
    title: string;
    description?: string;
    acceptanceCriteria: AcceptanceCriterion[];
}
export interface AcceptanceCriterion {
    id: string;
    description: string;
    priority?: string;
    testable: boolean;
    completed: boolean;
}
export interface Task {
    id: string;
    title: string;
    description?: string;
    acIds: string[];
    completed: boolean;
    userStories: string[];
}
export interface SpecTaskMapping {
    specId: string;
    specPath: string;
    incrementId: string;
    incrementPath: string;
    userStories: UserStory[];
    tasks: Task[];
    mappings: TaskToUserStoryMapping[];
}
export interface TaskToUserStoryMapping {
    taskId: string;
    userStoryIds: string[];
    acIds: string[];
    completed: boolean;
}
/**
 * Parse spec.md to extract user stories and acceptance criteria
 */
export declare function parseSpec(specPath: string): Promise<UserStory[]>;
/**
 * Parse tasks.md to extract tasks with AC-IDs
 */
export declare function parseTasks(tasksPath: string): Promise<Task[]>;
/**
 * Create mapping between tasks and user stories
 */
export declare function createTaskToUserStoryMapping(tasks: Task[], _userStories: UserStory[]): TaskToUserStoryMapping[];
/**
 * Get full mapping for an increment
 */
export declare function getSpecTaskMapping(incrementPath: string, specPath?: string): Promise<SpecTaskMapping | null>;
/**
 * Get completed user stories from mappings (all related tasks complete)
 */
export declare function getCompletedUserStories(mapping: SpecTaskMapping): UserStory[];
/**
 * Get recently completed tasks (completed since last sync)
 * Note: Currently returns all completed tasks; timestamp tracking could be added in the future
 */
export declare function getRecentlyCompletedTasks(mapping: SpecTaskMapping, _lastSyncDate?: Date): Task[];
/**
 * Find spec path for an increment
 */
export declare function findSpecForIncrement(incrementPath: string): Promise<string | null>;
//# sourceMappingURL=spec-task-mapper.d.ts.map