/** * Plan file information */ export interface PlanFile { path: string; filename: string; title: string; content: string; createdAt: Date; size: number; } /** * Parsed plan data */ export interface ParsedPlan { title: string; body: string; metadata: Record; } /** * Service for plan file operations * Single Responsibility: Plan file management */ export declare class PlanService { private planPath; constructor(planPath: string); /** * List all plan files */ listPlans(): Promise; /** * Select a plan file interactively */ selectPlan(preference: 'alwaysLatest' | 'chooseRecentPlan', maxChoices?: number): Promise; /** * Parse a plan file */ parsePlan(filePath: string): Promise; /** * Get the most recent plan file */ getLatestPlan(): Promise; /** * Search plans by title or content */ searchPlans(query: string): Promise; /** * Get plan by filename or path * Searches config planPath, then direct path */ getPlanByFilename(filenameOrPath: string): Promise; /** * Resolve a plan by direct file path (absolute or relative) */ getPlanByDirectPath(filePath: string): Promise; /** * Get the relative path for a plan (relative to repo root) */ getRelativePath(planPath: string): string; /** * Check if a plan file exists at the given path */ exists(planPath: string): boolean; /** * Delete a local plan file (e.g. after it has been uploaded to origin/main) * Non-throwing: logs warning on failure, returns success boolean. */ deletePlan(planPath: string): boolean; } //# sourceMappingURL=PlanService.d.ts.map