forked from javascript-obfuscator/javascript-obfuscator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
31 lines (25 loc) · 1 KB
/
index.d.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
import { TInputOptions } from './src/types/options/TInputOptions';
import { TDictionary } from './src/types/TDictionary';
import { IObfuscatedCode } from './src/interfaces/source-code/IObfuscatedCode';
import { TObfuscationResultsObject } from './src/types/TObfuscationResultsObject';
export type ObfuscatorOptions = TInputOptions;
export interface ObfuscatedCode extends IObfuscatedCode {}
/**
* @param {string} sourceCode
* @param {ObfuscatorOptions} inputOptions
* @returns {ObfuscatedCode}
*/
export function obfuscate (sourceCode: string, inputOptions?: ObfuscatorOptions): ObfuscatedCode;
/**
* @param {TSourceCodesObject} sourceCodesObject
* @param {TInputOptions} inputOptions
* @returns {TObfuscationResultsObject<TSourceCodesObject>}
*/
export function obfuscateMultiple <TSourceCodesObject extends TDictionary<string>> (
sourceCodesObject: TSourceCodesObject,
inputOptions?: TInputOptions
): TObfuscationResultsObject<TSourceCodesObject>;
/**
* @type {string}
*/
export const version: string;