/** * Parser utilities for Living Docs Sync * Extracts user stories and acceptance criteria from spec content * @module core/living-docs/sync-helpers/parsers */ import type { UserStoryData, AcceptanceCriterionData } from '../types.js'; /** * Calculate user story status based on AC completion */ export declare function calculateUSStatus(totalACs: number, completedACs: number): string; /** * Extract user stories from spec content * @param content - The spec.md content * @param defaultProject - Default project to use if US doesn't specify one * * Supports flexible ID formats: * - US-001 (standard numeric) * - US-API-001 (with project prefix) * - US-FE-001, US-BE-001, etc. */ export declare function extractUserStories(content: string, defaultProject?: string): UserStoryData[]; /** * Extract acceptance criteria from spec content * * Supports flexible AC ID formats: * - AC-US1-01 (legacy numeric) * - AC-API-US2-01 (with project prefix before US) * - AC-US-FE-001-01 (with project prefix after US) */ export declare function extractAcceptanceCriteria(content: string): AcceptanceCriterionData[]; //# sourceMappingURL=parsers.d.ts.map