/**
 * Hierarchy Mapping & Auto-Detection
 *
 * ADR-0237: Flexible hierarchy that collapses gracefully.
 * Core principle: User Story and Task are FIXED; container levels are FLEXIBLE.
 *
 * Collapsing rules:
 * - Flat (Tasks only) → Task = User Story
 * - Standard (Epic/Story/Sub-task) → Epic=Feature, Story=US, Sub-task=Task
 * - SAFe (5 levels) → Top 2 skip/container, Feature→Feature, Story→US
 */
export type HierarchyPattern = 'flat' | 'standard' | 'safe' | 'custom';
export type SpecweaveType = 'feature' | 'user-story' | 'task' | 'skip';
export interface CollapsingRule {
    externalType: string;
    specweaveType: SpecweaveType;
}
export interface ExternalItem {
    id: string;
    type: string;
    title: string;
    description: string;
    parent?: string;
}
export interface MappedItem {
    id: string;
    type: string;
    title: string;
    description: string;
    parent?: string;
    specweaveType: SpecweaveType;
    acceptanceCriteria?: string[];
}
/**
 * Map external items to SpecWeave hierarchy using collapsing rules.
 */
export declare function mapHierarchy(items: ExternalItem[], pattern: HierarchyPattern, customRules?: CollapsingRule[]): MappedItem[];
/**
 * Look up the SpecWeave type for an external type using collapsing rules.
 */
export declare function collapseHierarchy(externalType: string, rules: CollapsingRule[]): SpecweaveType | undefined;
/**
 * Extract acceptance criteria from a task description.
 *
 * Supported patterns:
 * 1. Markdown checklists: `- [ ] item` or `- [x] item`
 * 2. Numbered lists: `1. item`
 * 3. Bullet points: `- item`
 * 4. Fallback: single default AC
 */
export declare function extractAcceptanceCriteria(description: string): string[];
//# sourceMappingURL=hierarchy.d.ts.map