UNPKG

@syntropysoft/praetorian

Version:

Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.

40 lines 1.21 kB
/** * TODO: DECLARATIVE PROGRAMMING PATTERN * * This file demonstrates excellent declarative programming practices: * - Pure functions with clear input/output contracts * - Functional composition with async/await * - Immutable data handling * - Clear separation of concerns * - No imperative state mutations * - Error handling with type guards * * Mutation Score: 86.36% - Declarative patterns make testing reliable! */ import { ConfigFile } from '../../shared/types'; export declare class FileReaderService { /** * Read a single file and return its parsed content */ readFile(filePath: string): Promise<ConfigFile>; /** * Read multiple files and return their parsed contents */ readFiles(filePaths: string[]): Promise<ConfigFile[]>; /** * Check if a file format is supported */ isSupported(filePath: string): boolean; /** * Get all supported file extensions */ getSupportedExtensions(): string[]; /** * Validate that all files are supported before reading */ validateFiles(filePaths: string[]): { valid: string[]; invalid: string[]; }; } //# sourceMappingURL=FileReaderService.d.ts.map