/** * Parses the `df -hT` table. */ /** One table row: a volume, its type, sizes and mount point. */ export interface DfRow { filesystem: string; type: string; size: string; used: string; avail: string; pct: number; mount: string; } /** Parsed rows and the ones that could not be parsed. */ export interface DfTable { rows: DfRow[]; unparsed: string[]; } /** * The `df -hT` table into rows. * * df wraps a long volume name (a docker overlay path, an NFS address) onto a * second line, so a lone first field is glued to the following line. Whatever * doesn't add up to seven columns goes into `unparsed` instead of vanishing. */ export declare function parseDfTable(text: string): DfTable; /** * One volume, one row, keeping the shortest mount point. * * A bind mount shows the same device again: in a container three entries for * `/etc/hosts` and `/etc/hostname` were crowding the root out of the overview. */ export declare function dedupeByDevice(rows: DfRow[]): DfRow[];