forked from javascript-obfuscator/javascript-obfuscator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
44 lines (34 loc) · 1.4 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"use strict";
import { TDictionary } from './src/types/TDictionary';
import { TInputOptions } from './src/types/options/TInputOptions';
import { TObfuscationResultsObject } from './src/types/TObfuscationResultsObject';
import { TOptionsPreset } from './src/types/options/TOptionsPreset';
import { IObfuscationResult } from './src/interfaces/source-code/IObfuscationResult';
import { JavaScriptObfuscator } from './src/JavaScriptObfuscatorFacade';
export type ObfuscatorOptions = TInputOptions;
export interface ObfuscationResult extends IObfuscationResult {}
/**
* @param {string} sourceCode
* @param {ObfuscatorOptions} inputOptions
* @returns {ObfuscatedCode}
*/
export declare function obfuscate (sourceCode: string, inputOptions?: ObfuscatorOptions): ObfuscationResult;
/**
* @param {TSourceCodesObject} sourceCodesObject
* @param {TInputOptions} inputOptions
* @returns {TObfuscationResultsObject<TSourceCodesObject>}
*/
export declare function obfuscateMultiple <TSourceCodesObject extends TDictionary<string>> (
sourceCodesObject: TSourceCodesObject,
inputOptions?: TInputOptions
): TObfuscationResultsObject<TSourceCodesObject>;
/**
* @param {TOptionsPreset} optionsPreset
* @returns {TInputOptions}
*/
export declare function getOptionsByPreset (optionsPreset: TOptionsPreset): TInputOptions;
/**
* @type {string}
*/
export declare const version: string;
module.exports = JavaScriptObfuscator;