/**
 * User Story Content Builder - GitHub issue content for individual user stories
 *
 * Architecture:
 * - Reads individual us-*.md files from living docs
 * - Extracts ACs and converts to GitHub task checkboxes
 * - Finds and links related tasks from increment tasks.md
 * - Generates rich GitHub issue body with proper formatting
 *
 * Key Features:
 * - Checkable ACs (GitHub task checkboxes)
 * - Task connections (links to increment tasks)
 * - User story description (As a... I want... So that...)
 * - Implementation details
 */
interface UserStoryFrontmatter {
    id: string;
    epic: string;
    title: string;
    status: 'complete' | 'active' | 'planning' | 'not-started';
    project: string;
    priority: string;
    created: string;
    completed?: string;
}
interface AcceptanceCriterion {
    id: string;
    description: string;
    completed: boolean;
    priority: string;
    testable: boolean;
}
interface Task {
    id: string;
    title: string;
    status: boolean;
    link: string;
}
export interface UserStoryContent {
    frontmatter: UserStoryFrontmatter;
    userStoryDescription: {
        asA: string;
        iWant: string;
        soThat: string;
    } | null;
    acceptanceCriteria: AcceptanceCriterion[];
    tasks: Task[];
    incrementId: string | null;
    featureId: string;
}
export declare class UserStoryContentBuilder {
    private userStoryPath;
    private projectRoot;
    constructor(userStoryPath: string, projectRoot: string);
    /**
     * Parse user story file and extract all content
     */
    parse(): Promise<UserStoryContent>;
    /**
     * Build GitHub issue body from user story content
     *
     * @param githubRepo Optional GitHub repo in format "owner/repo" for generating URLs
     * @param branch Optional branch name for URL generation (defaults to 'main')
     */
    buildIssueBody(githubRepo?: string, branch?: string): Promise<string>;
    /**
     * Extract feature ID from epic or path
     */
    private extractFeatureId;
    /**
     * Extract user story description (As a... I want... So that...)
     */
    private extractUserStoryDescription;
    /**
     * Extract acceptance criteria from content
     */
    private extractAcceptanceCriteria;
    /**
     * Extract increment ID from Implementation section
     */
    private extractIncrementId;
    /**
     * Extract tasks for this user story from increment tasks.md
     */
    private extractTasks;
    /**
     * Extract highest priority from acceptance criteria
     * Priority order: P1 > P2 > P3
     */
    private extractPriorityFromACs;
    /**
     * Detect GitHub repository from git remote
     * Returns "owner/repo" format
     */
    private detectGitHubRepo;
}
export {};
//# sourceMappingURL=user-story-content-builder.d.ts.map