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'; /** * YAML File Adapter - Functional Programming * * Single Responsibility: Parse YAML configuration files only * Pure functions, no state, no side effects */ export declare class YamlFileAdapter extends AbstractFileAdapter { canHandle(filePath: string): boolean; read(filePath: string): Promise<Record<string, any>>; getFormat(): string; getSupportedExtensions(): string[]; } /** * Pure function to parse YAML content */ export declare const parseYamlContent: (content: string, filePath?: string) => Record<string, any>; //# sourceMappingURL=YamlFileAdapter.d.ts.map