/** * Bugs Loader & Sync Utility * * Loads bugs from .orchestrator/config/orchestrator.json (canonical) or .jm-mate/bugs.json (mirror) * Normalizes to JmBugRecord format */ import type { JmBugRecord } from "@/ticket-mate/bugs/types"; import type { BugStatus, BugSeverity, BugSource } from "@/shared/ticketMateTypes"; export type { BugStatus, BugSeverity, BugSource }; /** * Load bugs from Orchestrator file (.orchestrator/config/orchestrator.json) */ export declare function loadBugsFromOrchestrator(root: string, projectKey?: string): JmBugRecord[]; /** * Load bugs from Ticket Mate mirror file (.jm-mate/bugs.json) */ export declare function loadBugsFromJmMate(root: string, projectKey?: string): JmBugRecord[]; /** * Load bugs (prefer Orchestrator, fallback to Jira Mate mirror) */ export declare function loadBugs(root: string, projectKey?: string): JmBugRecord[]; /** * Write bugs to Jira Mate mirror file */ export declare function writeBugsToJmMate(root: string, bugs: JmBugRecord[]): void; /** * Update a bug record (updates both Orchestrator and mirror if possible) */ export declare function updateBug(root: string, bugId: string, updates: Partial, projectKey?: string): JmBugRecord | null; //# sourceMappingURL=loader.d.ts.map