UNPKG

@coji/journal-mcp

Version:

MCP server for journal entries with web viewer

25 lines 757 B
/** * Ensure directory exists, creating it if necessary */ export declare function ensureDir(dirPath: string): Promise<void>; /** * Check if file exists */ export declare function fileExists(filePath: string): Promise<boolean>; /** * Read file with error handling */ export declare function readFileIfExists(filePath: string): Promise<string | null>; /** * Write file with directory creation */ export declare function writeFileWithDir(filePath: string, content: string): Promise<void>; /** * Create backup of existing file */ export declare function backupFile(filePath: string): Promise<string | null>; /** * Delete a file if it exists */ export declare function deleteFile(filePath: string): Promise<void>; //# sourceMappingURL=files.d.ts.map