import { Command } from 'commander'; import { type GlobalFlags } from '../output.js'; type GF = () => GlobalFlags; export declare function buildDoctorCmd(g: GF): Command; export declare function buildTestCmd(g: GF): Command; export declare function buildVersionCmd(g: GF, cliVersion: string): Command; /** * cloakbrowser's package.json restricts "exports" to ".", "./puppeteer", * "./human" — no "./package.json" — so `require.resolve('cloakbrowser/package.json')` * always throws ERR_PACKAGE_PATH_NOT_EXPORTED regardless of whether the * package is installed. Walk the same node_modules search paths Node * itself would use to find the package *directory*, then read its * package.json directly as a plain file (not as a resolved export). */ export declare function readPackageVersion(pkg: string): Promise; export {}; //# sourceMappingURL=doctor.d.ts.map