/** * CLI command: list-plans * Lists all plans in the configured plansPath. */ import type { ServerConfig } from '../config.js'; /** * Plan entry for CLI output. */ export interface CliPlanEntry { number: string; name: string; workType: 'feature' | 'bug' | 'refactor' | 'docs' | 'unknown'; overview: string; status: 'GAP' | 'WIP' | 'PASS' | 'BLOCKED'; } /** * Extract plan number from directory name. * Handles both padded (0001-plan-name) and unpadded (1-plan-name) formats. */ export declare function extractPlanNumber(dirName: string): string | null; /** * Extract plan name from directory name. * Removes the number prefix and converts dashes to spaces. */ export declare function extractPlanName(dirName: string): string; /** * Detect work type from plan content or directory name. */ export declare function detectWorkType(dirName: string, content: string): CliPlanEntry['workType']; /** * Extract overview from plan content. * Looks for content after the title and before the first section. */ export declare function extractOverview(content: string): string; /** * Get plan status from frontmatter or default. */ export declare function getPlanStatus(content: string): CliPlanEntry['status']; /** * Result of listing plans. */ export interface ListPlansResult { plans: CliPlanEntry[]; total: number; } /** * Get all plans data from the configured plansPath. * Returns structured data for rendering. * * @param config - Server configuration * @returns Structured plan data or error message */ export declare function getPlansData(config: ServerConfig): ListPlansResult | { error: string; }; /** * List all plans from the configured plansPath. * * @param config - Server configuration * @returns Formatted string output for CLI */ export declare function listPlans(config: ServerConfig): string; //# sourceMappingURL=list-plans.d.ts.map