import { type Clock } from "webappwiz/time"; import type { Deps } from "./deps.js"; import type { Middleware } from "./middleware.js"; /** * Says how long a command took, on stderr, as the process ends. That is * after the action returns, or whenever something ends the process sooner, * since a command that sets its exit code with `ps.exit` never returns to a * middleware to report it. * * ```ts * program.command("check").use(timed()).action(...); * // ... done in 1m 12s * ``` */ export declare function timed(clock?: Clock): Middleware;