"use strict";
/**
 * Binary Module Type Definitions
 * Types specific to binary management operations.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGitHubApiUrls = exports.GITHUB_REPOS = exports.GITHUB_API_ALL_RELEASES = exports.GITHUB_API_LATEST_RELEASE = exports.VERSION_PIN_FILE = exports.VERSION_CACHE_DURATION_MS = void 0;
/** Cache duration for version check (1 hour in milliseconds) */
exports.VERSION_CACHE_DURATION_MS = 60 * 60 * 1000;
/** Version pin file name - stores user's explicit version choice */
exports.VERSION_PIN_FILE = '.version-pin';
/**
 * GitHub API URLs - backend-specific
 * @deprecated Use getGitHubApiUrls(backend) instead
 */
exports.GITHUB_API_LATEST_RELEASE = 'https://api.github.com/repos/kaitranntt/CLIProxyAPIPlus/releases/latest';
exports.GITHUB_API_ALL_RELEASES = 'https://api.github.com/repos/kaitranntt/CLIProxyAPIPlus/releases';
/** GitHub repos per backend */
exports.GITHUB_REPOS = {
    original: 'router-for-me/CLIProxyAPI',
    plus: 'kaitranntt/CLIProxyAPIPlus',
};
/** Get GitHub API URLs for specific backend */
function getGitHubApiUrls(backend) {
    const repo = exports.GITHUB_REPOS[backend];
    return {
        latestRelease: `https://api.github.com/repos/${repo}/releases/latest`,
        allReleases: `https://api.github.com/repos/${repo}/releases`,
    };
}
exports.getGitHubApiUrls = getGitHubApiUrls;
//# sourceMappingURL=types.js.map