/** * Shared utilities for backend implementations. * * @module */ /** * Check whether a command is available on the system PATH. * * Splits `process.env.PATH` by the platform delimiter and checks each * directory for a file matching the command name. On Windows, also checks * each extension from `process.env.PATHEXT` (e.g., `.exe`, `.cmd`, `.bat`). * * Uses `fs.stat` (not `fs.access` with execute bit) for cross-platform * compatibility -- Windows does not have Unix execute permissions. * * @param command - The bare command name to look for (e.g., "claude") * @returns `true` if the command exists as a file in any PATH directory * * @example * ```typescript * if (await isCommandOnPath('claude')) { * console.log('Claude CLI is available'); * } * ``` */ export declare function isCommandOnPath(command: string): Promise; //# sourceMappingURL=common.d.ts.map