/** * TOML parser for configuration files. * Parse TOML files (Cargo.toml, pyproject.toml, etc.). * Extract sections, list dependencies, compare versions. * * This is a self-contained TOML parser — no external dependency needed. */ type TomlValue = string | number | boolean | Date | TomlValue[] | TomlTable; interface TomlTable { [key: string]: TomlValue; } /** Parse a TOML document string into a nested object. */ export declare function parseToml(text: string): TomlTable; /** Extract a specific section from a TOML table. */ export declare function extractSection(table: TomlTable, sectionPath: string): TomlValue | undefined; export interface DependencyInfo { name: string; version: string; source: string; } /** List dependencies from a Cargo.toml or pyproject.toml structure. */ export declare function listDependencies(table: TomlTable): DependencyInfo[]; /** Compare version strings. Returns -1, 0, or 1. */ export declare function compareVersions(a: string, b: string): number; export {}; //# sourceMappingURL=toml-parser.d.ts.map