13af6ab5fSopenharmony_ci/*
23af6ab5fSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
33af6ab5fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43af6ab5fSopenharmony_ci * you may not use this file except in compliance with the License.
53af6ab5fSopenharmony_ci * You may obtain a copy of the License at
63af6ab5fSopenharmony_ci *
73af6ab5fSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
83af6ab5fSopenharmony_ci *
93af6ab5fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103af6ab5fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113af6ab5fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123af6ab5fSopenharmony_ci * See the License for the specific language governing permissions and
133af6ab5fSopenharmony_ci * limitations under the License.
143af6ab5fSopenharmony_ci */
153af6ab5fSopenharmony_ci
163af6ab5fSopenharmony_ciimport type {
173af6ab5fSopenharmony_ci  IFileNameObfuscationOption,
183af6ab5fSopenharmony_ci  IPrinterOption,
193af6ab5fSopenharmony_ci  INameObfuscationOption,
203af6ab5fSopenharmony_ci  IKeepSourcePathsAndDependency,
213af6ab5fSopenharmony_ci  IDeclarationCommentOption,
223af6ab5fSopenharmony_ci  IUnobfuscationOption
233af6ab5fSopenharmony_ci} from './INameObfuscationOption';
243af6ab5fSopenharmony_ci
253af6ab5fSopenharmony_ciexport interface IOptions {
263af6ab5fSopenharmony_ci  // Whether to generate compact code
273af6ab5fSopenharmony_ci  readonly mCompact?: boolean;
283af6ab5fSopenharmony_ci
293af6ab5fSopenharmony_ci  // Whether to remove comments;
303af6ab5fSopenharmony_ci  readonly mRemoveComments?: boolean;
313af6ab5fSopenharmony_ci
323af6ab5fSopenharmony_ci  // Whether to remove JSDoc comments;
333af6ab5fSopenharmony_ci  readonly mRemoveDeclarationComments?: IDeclarationCommentOption;
343af6ab5fSopenharmony_ci
353af6ab5fSopenharmony_ci  // Whether to disable console output
363af6ab5fSopenharmony_ci  readonly mDisableConsole?: boolean;
373af6ab5fSopenharmony_ci
383af6ab5fSopenharmony_ci  // Whether to do code simplification, includes variable declarations merging, expression merging...
393af6ab5fSopenharmony_ci  readonly mSimplify?: boolean;
403af6ab5fSopenharmony_ci
413af6ab5fSopenharmony_ci  // Whether to do Name Obfuscation
423af6ab5fSopenharmony_ci  readonly mNameObfuscation?: INameObfuscationOption;
433af6ab5fSopenharmony_ci
443af6ab5fSopenharmony_ci  mOutputDir?: string;
453af6ab5fSopenharmony_ci
463af6ab5fSopenharmony_ci  readonly mOhSdkPath?: string;
473af6ab5fSopenharmony_ci
483af6ab5fSopenharmony_ci  readonly mEnableSourceMap?: boolean;
493af6ab5fSopenharmony_ci
503af6ab5fSopenharmony_ci  readonly mEnableNameCache?: boolean;
513af6ab5fSopenharmony_ci
523af6ab5fSopenharmony_ci  readonly apiSavedDir?: string;
533af6ab5fSopenharmony_ci
543af6ab5fSopenharmony_ci  readonly applyReservedNamePath?: string;
553af6ab5fSopenharmony_ci
563af6ab5fSopenharmony_ci  readonly mRenameFileName?: IFileNameObfuscationOption;
573af6ab5fSopenharmony_ci
583af6ab5fSopenharmony_ci  // Whether to obfuscate the names or properties of the exported content
593af6ab5fSopenharmony_ci  readonly mExportObfuscation?: boolean;
603af6ab5fSopenharmony_ci
613af6ab5fSopenharmony_ci  // Time&Memory printer option
623af6ab5fSopenharmony_ci  readonly mPerformancePrinter?: IPrinterOption;
633af6ab5fSopenharmony_ci
643af6ab5fSopenharmony_ci  // The code of the file is not obfuscated, except for file name obfuscation
653af6ab5fSopenharmony_ci  mKeepFileSourceCode?: IKeepSourcePathsAndDependency
663af6ab5fSopenharmony_ci
673af6ab5fSopenharmony_ci  // Whether to print unobfuscation names and the print path.
683af6ab5fSopenharmony_ci  readonly mUnobfuscationOption?: IUnobfuscationOption;
693af6ab5fSopenharmony_ci}
70