/// import * as TSC from '../typescript'; /** Electron Compilation Functionality. */ export declare namespace Electron { /** File-Path Interface. */ interface IFilePath { filePath: string; } /** Buffer Interface. */ interface IBuffer { buffer: string | Buffer; } /** Script Typing Instance. */ type Script = IFilePath | IBuffer; /** * Compiles a native JavaScript file for Electron. * @param script File to compile. */ const compileNativeFile: (script: Script) => Promise; /** * Coordinates API compilation. * @param source Source to compile. * @param options Options to use. */ const compileProject: (source?: string | TSC.Program.IConfig, options?: TSC.IOptions) => Promise; /** * Coordinates command-line forked compilation. * @param source Source to compile. * @param args Arguments to forward. */ const fork: (source?: string, ...args: string[]) => Promise; /** Gets the core Electron CLI path. */ const runtime: () => string; }