/**
 * Execute a binary with the given arguments.
 */
/*@__NO_SIDE_EFFECTS__*/
export declare function execBin(binPath: string, args?: string[], options?: import('./spawn').SpawnOptions): Promise<{
    cmd: string;
    args: string[] | readonly string[];
    code: number;
    signal: NodeJS.Signals;
    stdout: string | Buffer<ArrayBufferLike>;
    stderr: string | Buffer<ArrayBufferLike>;
}>;
/**
 * Find and resolve a binary in the system PATH asynchronously.
 * @template {import('which').Options} T
 * @throws {Error} If the binary is not found and nothrow is false.
 */
export declare function whichBin(binName: string, options?: import('which').Options): Promise<string | string[] | undefined>;
/**
 * Find and resolve a binary in the system PATH synchronously.
 * @template {import('which').Options} T
 * @throws {Error} If the binary is not found and nothrow is false.
 */
export declare function whichBinSync(binName: string, options?: import('which').Options): string | string[] | undefined;
/**
 * Check if a directory path contains any shadow bin patterns.
 */
export declare function isShadowBinPath(dirPath: string | undefined): boolean;
/**
 * Find the real executable for a binary, bypassing shadow bins.
 */
export declare function findRealBin(binName: string, commonPaths?: string[]): string | undefined;
/**
 * Find the real npm executable, bypassing any aliases and shadow bins.
 */
export declare function findRealNpm(): string;
/**
 * Find the real pnpm executable, bypassing any aliases and shadow bins.
 */
export declare function findRealPnpm(): string;
/**
 * Find the real yarn executable, bypassing any aliases and shadow bins.
 */
export declare function findRealYarn(): string;
/*@__NO_SIDE_EFFECTS__*/
/**
 * Resolve a binary path to its actual executable file.
 * Handles Windows .cmd wrappers and Unix shell scripts.
 */
export declare function resolveBinPathSync(binPath: string): string;
