UNPKG

mcp-decisive

Version:

MCP server for WRAP decision-making framework with structured output

30 lines 1.05 kB
import { Result } from 'neverthrow'; /** * File system error types for better error categorization */ export interface FileSystemError { type: 'permission_denied' | 'directory_create_failed' | 'file_write_failed' | 'disk_full' | 'unknown'; message: string; originalError: Error; } /** * Get the data directory path for mcp-decisive */ export declare const getDataDirectory: () => string; /** * Ensure directory exists with detailed error handling */ export declare const ensureDirectory: (dirPath: string) => Promise<Result<void, FileSystemError>>; /** * Save JSON data to file with detailed error handling */ export declare const saveJsonFile: <T>(filePath: string, data: T) => Promise<Result<void, FileSystemError>>; /** * Read JSON data from file with detailed error handling */ export declare const readJsonFile: <T>(filePath: string) => Promise<Result<T, FileSystemError>>; /** * Check if file exists */ export declare const fileExists: (filePath: string) => Promise<boolean>; //# sourceMappingURL=filesystem.d.ts.map