import type { Command } from 'commander';
interface ProcessRow {
    pid: string;
    user: string;
    cpu: string;
    mem: string;
    started: string;
    state: string;
    command: string;
}
type SortKey = 'cpu' | 'mem' | 'pid';
/**
 * Parse docker top stdout into ProcessRow[].
 * Accepts two formats:
 *   1. JSON: {"Titles":[...],"Processes":[[...],...]}  (HTTP API / docker daemon)
 *   2. Tabular text with a header line                 (bare CLI spawnSync path)
 *
 * The tabular format uses stime (single-word start time like "10:00" or "Feb11")
 * to avoid multi-word timestamp parsing issues.
 */
export declare function parseDockerTop(stdout: string): ProcessRow[];
export declare function sortRows(rows: ProcessRow[], key: SortKey): ProcessRow[];
export declare function registerPs(program: Command): void;
export {};
//# sourceMappingURL=ps.d.ts.map