import { LogLevels } from '../types'; export interface DebugPiralOptions { /** * Sets the path to the entry file. */ entry?: string; /** * Sets the target directory where the output of the bundling should be placed. */ target?: string; /** * Sets the port to use for the debug server. */ port?: number; /** * Forces the set port to be used, otherwise exists with an error. */ strictPort?: boolean; /** * Sets the publicUrl to use. * By default, the server is assumed to be at root "/". */ publicUrl?: string; /** * Sets the log level to use (1-5). */ logLevel?: LogLevels; /** * Sets if the (system default) browser should be auto-opened. */ open?: boolean; /** * Defines if hot module reloading (HMR) should be integrated for faster debugging. */ hmr?: boolean; /** * Sets the bundler to use for building, if any specific. */ bundlerName?: string; /** * Sets the relative path to the krasrc, if any. */ krasrc?: string; /** * States if the node modules should be included for target transpilation */ optimizeModules?: boolean; /** * The URL of a pilet feed(s) used to include locally missing pilets. */ feed?: string | Array; /** * Additional arguments for a specific bundler. */ _?: Record; /** * Hooks to be triggered at various stages. */ hooks?: { onBegin?(e: any): Promise; beforeBuild?(e: any): Promise; afterBuild?(e: any): Promise; beforeOnline?(e: any): Promise; afterOnline?(e: any): Promise; onEnd?(e: any): Promise; }; } export declare const debugPiralDefaults: DebugPiralOptions; export declare function debugPiral(baseDir?: string, options?: DebugPiralOptions): Promise;