import { DEFAULT_LANGUAGE } from '../../../shared/constants.js';
import { loadGlobalConfig, saveGlobalConfig } from './globalConfigCore.js';
export function getDisabledBuiltins() {
    const config = loadGlobalConfig();
    return config.disabledBuiltins ?? [];
}
export function getBuiltinWorkflowsEnabled() {
    const config = loadGlobalConfig();
    return config.enableBuiltinWorkflows !== false;
}
export function getLanguage() {
    const config = loadGlobalConfig();
    return config.language ?? DEFAULT_LANGUAGE;
}
export function setLanguage(language) {
    const config = loadGlobalConfig();
    config.language = language;
    saveGlobalConfig(config);
}
export function setProvider(provider) {
    const config = loadGlobalConfig();
    config.provider = provider;
    saveGlobalConfig(config);
}
//# sourceMappingURL=globalConfigAccessors.js.map