/**
 * User Story Issue Builder - Creates GitHub issue content for individual User Stories
 *
 * Architecture (Universal Hierarchy):
 * - Feature (FS-033) → GitHub Milestone
 * - User Story (US-001) → GitHub Issue (this builder creates the body)
 * - Tasks (T-001, T-002) → Checkboxes in issue body
 *
 * Key Features:
 * - Reads single us-*.md file
 * - Extracts acceptance criteria as checkboxes
 * - Maps tasks from increment's tasks.md
 * - Generates GitHub issue body with proper formatting
 */
export declare class UserStoryIssueBuilder {
    private userStoryPath;
    private projectRoot;
    private featureId;
    private repoOwner?;
    private repoName?;
    private branch?;
    constructor(userStoryPath: string, projectRoot: string, featureId: string, repoInfo?: {
        owner: string;
        repo: string;
        branch?: string;
    });
    /**
     * Build GitHub issue body for a single User Story
     *
     * Format:
     * - User Story statement
     * - Acceptance Criteria (checkboxes)
     * - Tasks (checkboxes)
     * - Links (Feature, Increment, Spec file)
     */
    buildIssueBody(): Promise<{
        title: string;
        body: string;
        labels: string[];
        userStoryId: string;
        status?: string;
    }>;
    /**
     * Read User Story frontmatter
     */
    private readUserStoryFrontmatter;
    /**
     * Extract "As a... I want... So that..." statement
     */
    private extractUserStoryStatement;
    /**
     * Extract Acceptance Criteria with AC-IDs and checkbox state
     */
    private extractAcceptanceCriteria;
    /**
     * Extract tasks from user story's ## Tasks section (NEW architecture)
     *
     * Previously: Read from increment tasks.md (LEGACY)
     * Now: Read from user story's ## Tasks section directly
     *
     * This enables project-specific tasks with completion tracking per user story.
     */
    private extractTasks;
    /**
     * LEGACY: Extract tasks from increment's tasks.md (backward compatibility)
     *
     * Used as fallback when user story file doesn't have ## Tasks section.
     */
    private extractTasksLegacy;
    /**
     * Build complete issue body
     */
    private buildBody;
    /**
     * Build labels for the issue
     *
     * CRITICAL: Label names must match repository labels exactly!
     * Repository uses: status:complete, status:active, status:not_started
     *
     * v0.35.0: Project derived from frontmatter.project in us-*.md files.
     * Living docs sync transforms spec.md **Project**: → us-*.md frontmatter project:
     */
    private buildLabels;
    /**
     * Check if this issue belongs to an externally imported increment.
     * External imports should preserve original titles without [FS-XXX] prefix.
     */
    private isExternalImport;
    /**
     * Capitalize first letter
     */
    private capitalize;
}
//# sourceMappingURL=user-story-issue-builder.d.ts.map