"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isGo2rtcAvailable = exports.go2rtcPath = void 0;
const fs_extra_1 = __importDefault(require("fs-extra"));
const os_1 = __importDefault(require("os"));
const path_1 = __importDefault(require("path"));
const platform = os_1.default.platform();
const go2rtcBinaryPath = path_1.default.resolve(__dirname, '../binary');
const go2rtcFile = 'go2rtc' + (platform === 'win32' ? '.exe' : '');
const go2rtcExtractedFilePath = path_1.default.resolve(go2rtcBinaryPath, go2rtcFile);
const go2rtcPath = () => go2rtcExtractedFilePath;
exports.go2rtcPath = go2rtcPath;
const isGo2rtcAvailable = () => {
    return fs_extra_1.default.existsSync(go2rtcExtractedFilePath);
};
exports.isGo2rtcAvailable = isGo2rtcAvailable;
//# sourceMappingURL=index.js.map