export type InstallMethodKind = 'npm-prefix' | 'bun' | 'volta' | 'pnpm' | 'snap' | 'homebrew' | 'native' | 'unknown'; export interface InstallMethod { kind: InstallMethodKind; argv: { cmd: string; args: string[]; } | null; elevatedArgv: { cmd: string; args: string[]; } | null; label: string; manualCommand: string | null; prefix: string | null; needsElevation: boolean; } export interface InstallMethodProbes { realpath?: (p: string) => string; readText?: (p: string) => string | null; writable?: (p: string) => boolean; windows?: boolean; } export declare function npmPackageFromRealPath(realPath: string): string | null; export declare function npmPrefixFromRealPath(realPath: string, windows: boolean): string | null; export declare function detectInstallMethod(bin: string, pkgHint: string | null, probes?: InstallMethodProbes): InstallMethod; export declare function describeInstallMethod(method: InstallMethod): string; export declare function displayPath(p: string): string;