UNPKG

@syntropysoft/praetorian

Version:

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

18 lines 657 B
import { AbstractFileAdapter } from '../base/AbstractFileAdapter'; /** * JSON File Adapter - Functional Programming * * Single Responsibility: Parse JSON configuration files only * Pure functions, no state, no side effects */ export declare class JsonFileAdapter extends AbstractFileAdapter { canHandle(filePath: string): boolean; read(filePath: string): Promise<Record<string, any>>; getFormat(): string; getSupportedExtensions(): string[]; } /** * Pure function to parse JSON content */ export declare const parseJsonContent: (content: string, filePath?: string) => Record<string, any>; //# sourceMappingURL=JsonFileAdapter.d.ts.map