// The production VersionProvider: the only fs/meta-coupled file in the engine.
// Everything else in this module is pure and testable without it.
import { listInstalledVersions, getGlobalDefault, getIsolatedDefault, getProjectVersion, isVersionInstalled, } from '../installations/store.js';
export const defaultVersionProvider = {
    listInstalled: (agent) => listInstalledVersions(agent),
    getProjectVersion: (agent, cwd) => getProjectVersion(agent, cwd),
    getGlobalDefault: (agent) => getGlobalDefault(agent),
    getIsolatedDefault: (agent) => getIsolatedDefault(agent),
    isInstalled: (agent, version) => isVersionInstalled(agent, version),
};
