interface Logger { debug(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; } /** * Defines the contract for file operations in the SpecCoding MCP server. * Provides methods for reading and writing files with proper error handling and logging. */ export interface IFileService { /** * Asynchronously writes content to a file at the specified path. */ writeFileAsync(filePath: string, content: string): Promise; /** * Asynchronously reads the content of a file at the specified path. */ readFileAsync(filePath: string): Promise; } /** * Provides file system operations with logging and error handling. * Uses UTF-8 encoding for all file operations and provides detailed logging. */ export declare class FileService implements IFileService { private readonly _logger; constructor(logger: Logger); /** * Asynchronously writes content to a file with UTF-8 encoding. * Creates directories as needed and logs operation details. */ writeFileAsync(filePath: string, content: string): Promise; /** * Asynchronously reads the content of a file with UTF-8 encoding. * Validates file existence and logs operation details. */ readFileAsync(filePath: string): Promise; } export {}; //# sourceMappingURL=FileService.d.ts.map