/** * @file Path utilities for DLX package installations. */ /** * Get the installed package directory within DLX node_modules. * * @example * ;```typescript * const dir = getDlxInstalledPackageDir('prettier') * ``` */ export declare function getDlxInstalledPackageDir(packageName: string): string; /** * Get the DLX installation directory for a specific package. * * @example * ;```typescript * const dir = getDlxPackageDir('a1b2c3d4') * ``` */ export declare function getDlxPackageDir(packageName: string): string; /** * Get the package.json path for a DLX installed package. * * @example * ;```typescript * const jsonPath = getDlxPackageJsonPath('prettier') * ``` */ export declare function getDlxPackageJsonPath(packageName: string): string; /** * Get the node_modules directory for a DLX package installation. * * @example * ;```typescript * const nmDir = getDlxPackageNodeModulesDir('a1b2c3d4') * ``` */ export declare function getDlxPackageNodeModulesDir(packageName: string): string; /** * Check if a file path is within the Socket DLX directory. This is useful for * determining if a binary or file is managed by Socket's DLX system. * * @example * ;```typescript * isInSocketDlx('/home//.socket/_dlx/abc123/bin/socket') // true * isInSocketDlx('/usr/local/bin/socket') // false * isInSocketDlx(process.argv[0]) // Check if current binary is in DLX * ``` * * @param filePath - Absolute or relative path to check. * * @returns True if the path is within ~/.socket/_dlx/, false otherwise */ export declare function isInSocketDlx(filePath: string): boolean;