/* Type definitions for jscc v1.1.1 @license MIT */ export = Jscc /** * Preprocessor for conditional comments and replacement of compile-time * variables in text files (asynchronous version). * * @param source String to be preprocessed, encoded in utf8. * @param filename Absolute or relative path to the current directory. * @param options User options. * @param callback NodeJS style callback that receives the error and result as parameters. */ declare function Jscc ( source: string, filename: string | null | undefined, options: Jscc.Options | null | undefined, callback: Jscc.Callback ): void /** * Preprocessor for conditional comments and replacement of compile-time * variables in text files (synchronous version). * * @param source String to be preprocessed, encoded in utf8. * @param filename Absolute or relative path to the current directory. * @param options User options. * @returns Object with `code` and `map` properties. */ declare function Jscc ( source: string, filename?: string | null, options?: Jscc.Options | null ): Jscc.Result // tslint:disable:no-namespace declare namespace Jscc { type QuoteType = 'single' | 'double' | 'both' interface Options { /** * String with the type of quotes to escape in the output of strings: * 'single', 'double' or 'both'. * * It does not affects the strings contained in the JSON output of * objects. */ escapeQuotes?: QuoteType /** * Allows to preserve the empty lines of directives and blocks that * were removed. * * Use this option with `sourceMap:false` if you are interested only in * preserve the line count. * * @default false */ keepLines?: boolean /** * Include the original source in the sourcemap. * * @default false */ mapContent?: boolean /** * Makes a hi-res sourcemap. * * @default true */ mapHires?: boolean /** * String, regex or array of strings or regex matching the start of a directive. * That is, the characters before the '#', usually the start of comments. * * @default ['//','/*','