/** * Quoted CSV that carries its own header row. * * `schtasks /query /fo CSV /v` is the caller. Its columns were read by fixed * index, which is wrong for the same reason it was wrong for wmic: the order is * not the one you would guess. `/v` output begins with HostName, so index 0 was * the machine name for every row -- see utils/wmic-csv.ts for the sibling * defect, and note that both survived because every CI job runs ubuntu-latest * and no test had ever executed either branch. * * Reading the header instead of assuming it also survives the two things that * actually vary in practice: a locale that renames the columns, and a schtasks * version that adds one. */ /** Splits one CSV line, honouring double-quoted fields. */ export declare function splitCsvLine(line: string): string[]; /** * Parse CSV whose first line names the columns. * * @param stdout Raw command output. * @returns One record per data row, keyed by the LOWER-CASED column name, so * lookups do not depend on the exact capitalisation a tool chose. */ export declare function parseCsvWithHeader(stdout: string): Array>; //# sourceMappingURL=csv-with-header.d.ts.map