import type { BuildOptions } from 'esbuild'; import type { UiFilePaths, FrozenResolvedCliOptions } from '../../utils/config/cli-options'; import type { BuildMode } from '../bundler/definitions'; import { type CustomBuildOptions } from './utils'; import { type CompilationResult } from '../compile'; /** * Starts the esbuild process in different modes * @param buildMode - Whether to run a one-shot build or start a file watcher * @param options - Custom build options including the isDev flag * @param uiFilePaths - Resolved UI file paths, or null when no UI entry point exists */ export declare function buildUi(buildMode: BuildMode, options: CustomBuildOptions, uiFilePaths: UiFilePaths | null): Promise; /** * Returns config object with esbuild options for the UI bundle * @param cliOptions - Frozen resolved CLI options * @param entryPoints - Entry point paths for the UI bundle * @param isDev - Whether the build is running in development mode * @param uiFilePaths - Resolved UI file paths including the TypeScript config path */ export declare function defineEsbuildBuildUiOptions(cliOptions: FrozenResolvedCliOptions, entryPoints: string[], isDev: boolean, uiFilePaths: UiFilePaths): BuildOptions;