export interface EnvLine { type: "comment" | "empty" | "variable" | "section"; raw: string; key?: string; value?: string; section?: string; isSecretSection?: boolean; isVariableSection?: boolean; } export interface SectionInfo { isSecret: boolean; isVariable: boolean; variables: string[]; } export interface ParsedEnv { secrets: string[]; variables: string[]; untagged: string[]; lines: EnvLine[]; sections: Map; } /** * Parse an env file and extract structured data */ export declare function parseEnvFile(content: string): ParsedEnv; /** * Load and parse .env.example from a directory */ export declare function loadEnvExample(rootDir: string): ParsedEnv; /** * Get a map of variable names to their values from .env */ export declare function getEnvVariables(lines: EnvLine[]): Map; /** * Check if .env.example exists */ export declare function envExampleExists(rootDir: string): boolean; /** * Check if .env.example has any @secrets or @variables annotations */ export declare function hasAnnotations(rootDir: string): { hasSecrets: boolean; hasVariables: boolean; }; /** * Get sections from .env.example that could be marked as secrets */ export declare function getSectionNames(rootDir: string): string[]; /** * Create a template .env.example file */ export declare function createEnvExampleTemplate(rootDir: string): void; export interface EnvExampleStatus { exists: boolean; hasSecrets: boolean; hasVariables: boolean; hasAnyAnnotation: boolean; sections: string[]; untaggedCount: number; } /** * Check the status of .env.example */ export declare function checkEnvExample(rootDir: string): EnvExampleStatus; //# sourceMappingURL=parser.d.ts.map