import { CommandResult } from '../../utils/types.js'; import { BaseCLICommand } from './baseCommand.js'; /** * Base class for commands that use the session working directory with root context fallback * Extends BaseCLICommand and adds working directory handling */ export declare abstract class SessionAwareCLICommand extends BaseCLICommand { /** * Get the working directory from the session, or use the root context as fallback. * Priority: session working directory > root context > project root * @returns The working directory to use for the command */ protected getWorkingDirectory(): string | undefined; /** * Execute a command that requires a working directory from the session * @param command The command to execute * @param args The command arguments * @param useMcpCwd Whether to use the MCP's current working directory * @returns The command result */ protected executeWithSessionWorkingDirectory(command: string, args: string[], useMcpCwd?: boolean): Promise; /** * Execute an SDK command with argument mapping to CLI flags * @param sdkCommand The SDK command name (e.g., 'build', 'install') * @param args The command arguments object * @param flagMapping Optional mapping of arg names to CLI flags * @param positionalArgs Optional positional arguments to append at the end * @returns The command result */ protected executeSdkCommand(sdkCommand: string, args: Record, flagMapping?: Record, positionalArgs?: string[]): Promise; } //# sourceMappingURL=sessionAwareCommand.d.ts.map