import { Ec2CommandExecutionResult } from '../controllers/aws.sso.ec2.types.js';
/**
 * Interface for parameters to execute an EC2 command via SSM
 */
export interface ExecuteEc2CommandParams {
    /**
     * EC2 instance ID
     */
    instanceId: string;
    /**
     * AWS account ID
     */
    accountId: string;
    /**
     * AWS role name
     */
    roleName: string;
    /**
     * Shell command to execute
     */
    command: string;
    /**
     * AWS region
     */
    region?: string;
    /**
     * Command execution timeout in milliseconds
     */
    timeout?: number;
    /**
     * Whether to force refresh credentials
     */
    forceRefresh?: boolean;
}
/**
 * Interface for EC2 command execution results
 */
export interface ExtendedEc2CommandResult extends Ec2CommandExecutionResult {
    /**
     * Instance name if available
     */
    instanceName?: string;
}
/**
 * Execute a shell command on an EC2 instance via SSM
 *
 * @param params Parameters for command execution
 * @returns Command execution result
 * @throws Error if the command execution fails
 */
export declare function executeEc2Command(params: ExecuteEc2CommandParams): Promise<ExtendedEc2CommandResult>;
