"use strict";
/*
 * Copyright (c) 2025-2026 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ENABLE_DECLARATION_BARRIER = exports.ENABLE_DECL_CACHE = exports.CLUSTER_FILES_TRESHOLD = exports.ENABLE_CLUSTERS = exports.MEMO_PLUGIN_PATH_FROM_SDK = exports.UI_PLUGIN_PATH_FROM_SDK = exports.KOALA_WRAPPER_PATH_FROM_SDK = exports.STATIC_RECORD_FILE_CONTENT = exports.DYNAMIC_PREFIX = exports.COMPONENT = exports.ARKTS = exports.API = exports.KITS = exports.ARKTS_MODULE_NAME = exports.NATIVE_MODULE = exports.sdkConfigPrefix = exports.ETS_1_1_INTEROP = exports.ETS_1_1 = exports.DEFAULT_WORKER_NUMS = exports.KIT_CONFIGS_PATH_FROM_SDK = exports.SYSTEM_SDK_PATH_FROM_SDK = exports.PANDA_SDK_PATH_FROM_SDK = exports.LANGUAGE_VERSION = exports.ETSCACHE_SUFFIX = exports.ABC_SUFFIX = exports.TS_SUFFIX = exports.ETS_SUFFIX = exports.DECL_TS_SUFFIX = exports.DECL_ETS_SUFFIX = exports.DECL_FILE_MAP_NAME = exports.FILE_HASH_CACHE = exports.STATIC_RECORD_FILE = exports.PROJECT_BUILD_CONFIG_FILE = exports.DEP_ANALYZER_DIR = exports.DEP_ANALYZER_OUTPUT_FILE = exports.DEP_ANALYZER_INPUT_FILE = exports.LINKER_INPUT_FILE = exports.MERGED_INTERMEDIATE_FILE = exports.MERGED_ABC_FILE = exports.MERGED_CLUSTER_FILE = exports.ARKTSCONFIG_JSON_FILE = void 0;
exports.ARKTSCONFIG_JSON_FILE = 'arktsconfig.json';
exports.MERGED_CLUSTER_FILE = 'cluster.abc';
exports.MERGED_ABC_FILE = 'modules_static.abc';
exports.MERGED_INTERMEDIATE_FILE = 'modules_intermediate.abc';
exports.LINKER_INPUT_FILE = 'fileInfo.txt';
exports.DEP_ANALYZER_INPUT_FILE = 'dependencyFileInfo.txt';
exports.DEP_ANALYZER_OUTPUT_FILE = 'dependency.json';
exports.DEP_ANALYZER_DIR = 'dep_analyzer';
exports.PROJECT_BUILD_CONFIG_FILE = 'projectionConfig.json';
exports.STATIC_RECORD_FILE = 'static.Record.d.ts';
exports.FILE_HASH_CACHE = 'hash_cache.json';
exports.DECL_FILE_MAP_NAME = 'decl_file_map.json';
exports.DECL_ETS_SUFFIX = '.d.ets';
exports.DECL_TS_SUFFIX = '.d.ts';
exports.ETS_SUFFIX = '.ets';
exports.TS_SUFFIX = '.ts';
exports.ABC_SUFFIX = '.abc';
exports.ETSCACHE_SUFFIX = '.etscache';
var LANGUAGE_VERSION;
(function (LANGUAGE_VERSION) {
    LANGUAGE_VERSION["ARKTS_1_2"] = "1.2";
    LANGUAGE_VERSION["ARKTS_1_1"] = "1.1";
    LANGUAGE_VERSION["ARKTS_HYBRID"] = "hybrid";
})(LANGUAGE_VERSION || (exports.LANGUAGE_VERSION = LANGUAGE_VERSION = {}));
;
exports.PANDA_SDK_PATH_FROM_SDK = './build-tools/ets2panda';
exports.SYSTEM_SDK_PATH_FROM_SDK = './';
exports.KIT_CONFIGS_PATH_FROM_SDK = '../dynamic/build-tools/ets-loader/kit_configs';
exports.DEFAULT_WORKER_NUMS = 3;
exports.ETS_1_1 = 'dynamic';
exports.ETS_1_1_INTEROP = 'dynamic-interop';
exports.sdkConfigPrefix = 'ohos|system|kit|arkts';
exports.NATIVE_MODULE = new Set(['system.app', 'ohos.app', 'system.router', 'system.curves', 'ohos.curves', 'system.matrix4', 'ohos.matrix4']);
exports.ARKTS_MODULE_NAME = 'arkts';
exports.KITS = 'kits';
exports.API = 'api';
exports.ARKTS = 'arkts';
exports.COMPONENT = 'component';
exports.DYNAMIC_PREFIX = 'dynamic/';
exports.STATIC_RECORD_FILE_CONTENT = `// generated for static Record
export type Record<K extends keyof any, T> = {
  [P in K]: T;
};
`;
// Koala experimental variables
exports.KOALA_WRAPPER_PATH_FROM_SDK = process.env.USE_KOALA_LIBARKTS ? './build-tools/ui2abc/libarkts/lib/libarkts.js' : './build-tools/koala-wrapper/build/lib/es2panda';
exports.UI_PLUGIN_PATH_FROM_SDK = './build-tools/ui2abc/ui-plugin/lib/entry.js';
exports.MEMO_PLUGIN_PATH_FROM_SDK = './build-tools/ui2abc/memo-plugin/lib/entry.js';
// Build control constants
exports.ENABLE_CLUSTERS = true;
// Optimal number for each application should be selected manually right now
exports.CLUSTER_FILES_TRESHOLD = 460;
// Declaration cache is not fixed right now
exports.ENABLE_DECL_CACHE = false;
// Synchronize execution on declaration generation.
exports.ENABLE_DECLARATION_BARRIER = false;
