"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dockerChecker = void 0;
const spawn_1 = require("./spawn");
exports.dockerChecker = {
    isInstalled() {
        try {
            const result = (0, spawn_1.spawnCommand)('docker', ['--version'], {
                encoding: 'utf8',
                timeout: 5000
            });
            return result.status === 0 && Boolean(result.stdout?.toString().trim());
        }
        catch {
            return false;
        }
    },
    composePluginInstalled() {
        try {
            const result = (0, spawn_1.spawnCommand)('docker', ['compose', 'version'], {
                encoding: 'utf8',
                timeout: 5000
            });
            return result.status === 0 && Boolean(result.stdout?.toString().trim());
        }
        catch {
            return false;
        }
    }
};
//# sourceMappingURL=docker-checker.js.map