export interface DotenvDiagnostic {
    line: number;
    key?: string;
    severity: 'warning' | 'error';
    code: 'invalid_line' | 'invalid_key' | 'duplicate' | 'conflict' | 'unterminated_quote';
    message: string;
}
export interface DotenvDocument {
    values: Record<string, string>;
    diagnostics: DotenvDiagnostic[];
    valid: boolean;
}
export declare function parseDotenv(source: string): DotenvDocument;
export declare function serializeDotenv(values: Record<string, string>): string;
