/** * Install-method detection. * * Resolves `argv1` (defaults to `process.argv[1]`) through `realpathSync` and * pattern-matches the resolved path to determine how the user installed `ref`. * Inside a Bun single-file executable, `argv[1]` is a bunfs virtual path, so * the real on-disk binary path (`execPath`) is substituted first. */ export type InstallMethod = "binary" | "npm-global" | "dev" | "npx"; export declare function isBunfsPath(path: string): boolean; /** * Returns the real on-disk path of the running entrypoint: `argv1` normally, * or `execPath` when `argv1` points into the bunfs virtual filesystem of a * Bun single-file executable. */ export declare function resolveEntrypoint(argv1?: string, execPath?: string): string | undefined; export declare function detectInstallMethod(argv1?: string, execPath?: string): InstallMethod; //# sourceMappingURL=detect.d.ts.map