import type { EcoPagesAppConfig } from '../types/internal-types.js'; import { AbstractApplicationAdapter } from './abstract/application-adapter.js'; import type { ApplicationAdapterOptions } from './abstract/application-adapter.js'; export type { OnAppStartCallback, AppStartInfo, StartCallback, ListenCallback, ApplicationListeningCallback, ApplicationListeningInfo, } from './abstract/application-adapter.js'; export type EcopagesRuntimeAdapter = 'auto' | 'node' | 'bun'; export interface EcopagesAppOptions extends ApplicationAdapterOptions { appConfig: EcoPagesAppConfig; /** * Selects the runtime adapter used by the universal `createApp()` entrypoint. * * @default 'auto' * * @remarks * This is separate from `runtime`, which configures embedded host behavior. * Use `auto` to select Bun when the current process exposes `globalThis.Bun` * and Node otherwise. */ adapter?: EcopagesRuntimeAdapter; serverOptions?: Record; } export type UniversalEcopagesApp = AbstractApplicationAdapter; export declare function createApp(options: EcopagesAppOptions): Promise;