/** * Hardened File System Helpers for .jm-mate * * Wraps FS operations with proper error handling and typed errors. * All .jm-mate file operations should go through these helpers. */ import type { JmMateConfig, JmMateProjectMeta, JmMateTicketMeta } from '../shared/ticketMateTypes'; /** * Read and parse config.json with error handling */ export declare function readJmMateConfigSafe(root: string, configPath: string): JmMateConfig | null; /** * Read and parse project.meta.json with error handling */ export declare function readProjectMetaSafe(root: string, projectKey: string, metaPath: string): JmMateProjectMeta | null; /** * Read and parse ticket.meta.json with error handling */ export declare function readTicketMetaSafe(root: string, projectKey: string, ticketKey: string, metaPath: string): JmMateTicketMeta | null; /** * List directory entries with error handling */ export declare function listDirectorySafe(dirPath: string, context?: { projectKey?: string; ticketKey?: string; }): Array<{ name: string; isDirectory: boolean; }>; /** * Check if path exists (safe wrapper) */ export declare function pathExistsSafe(path: string): boolean; //# sourceMappingURL=fsHelpers.d.ts.map