export type BuildServerBundleOptions = { /** App-Root. Default: process.cwd(). */ readonly cwd?: string; /** Output-Folder relativ zu cwd. Default: "dist-server". */ readonly outDir?: string; /** Zusätzliche Pakete die zur Laufzeit installiert sein müssen * (beyond RUNTIME_EXTERNALS). App-spezifisch — Default leer. */ readonly extraRuntimeExternals?: readonly string[]; /** Zusätzliche Build-only-Externals. App-spezifisch — Default leer. */ readonly extraBuildOnlyExternals?: readonly string[]; }; export type BuildServerBundleEntry = { readonly file: string; readonly sizeBytes: number; }; export type BuildServerBundleResult = { readonly outDir: string; /** Named entry files (server.js, plus kumiko.js, worker.js and bootstrap.js when present). */ readonly entries: readonly BuildServerBundleEntry[]; /** Geteilte Framework-Chunks (von splitting). */ readonly chunks: readonly BuildServerBundleEntry[]; /** Gesamt-Größe aller Outputs (entries + chunks) in Bytes. */ readonly totalBytes: number; readonly runtimeDeps: Readonly>; }; export declare function buildServerBundle(options?: BuildServerBundleOptions): Promise; export declare function discoverServerEntry(cwd: string): string | undefined; /** Read `package.json#kumiko.extraRuntimeExternals` for kumiko-build (#1484). * Invalid / missing shapes → empty list (CLI stays convention-driven). */ export declare function readExtraRuntimeExternals(cwd: string): readonly string[]; export declare function formatServerBuildResult(result: BuildServerBundleResult, durationMs: number): string;