"use strict";
/**
 * CCS Configuration Types
 * Source: ~/.ccs/config.json
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSettings = exports.isConfig = void 0;
/**
 * Type guards
 */
function isConfig(obj) {
    return (typeof obj === 'object' && obj !== null && 'profiles' in obj && typeof obj.profiles === 'object');
}
exports.isConfig = isConfig;
function isSettings(obj) {
    if (typeof obj !== 'object' || obj === null)
        return false;
    if (!('env' in obj))
        return true; // env is optional
    if (typeof obj.env !== 'object' || obj.env === null)
        return false;
    // Validate all env values are strings
    return Object.values(obj.env).every((v) => typeof v === 'string');
}
exports.isSettings = isSettings;
//# sourceMappingURL=config.js.map