import type { AnyInjectableType } from '@navios/core'; import { InjectionToken } from '@navios/core'; /** * Creates a Bun adapter environment configuration for Navios. * * This function sets up the necessary dependency injection tokens and services * required to run Navios applications on the Bun runtime. It configures: * - HTTP adapter service for handling HTTP requests * - Endpoint adapter for standard REST endpoints * - Stream adapter for streaming responses * - Multipart adapter for file uploads and form data * - Request token for accessing the current Bun request * * @returns An object containing the token mappings for the Bun adapter. * This object should be passed to `NaviosFactory.create()` as the `adapter` option. * * @example * ```ts * import { defineBunEnvironment } from '@navios/adapter-bun' * import { NaviosFactory } from '@navios/core' * * const app = await NaviosFactory.create(AppModule, { * adapter: defineBunEnvironment(), * }) * ``` * * @example * ```ts * // With custom Bun server options * const app = await NaviosFactory.create(AppModule, { * adapter: defineBunEnvironment(), * }) * * app.configure({ * development: process.env.NODE_ENV === 'development', * }) * await app.init() * ``` * * @see {@link BunApplicationService} The HTTP adapter service implementation * @see {@link BunEndpointAdapterService} The endpoint adapter implementation * @see {@link BunStreamAdapterService} The stream adapter implementation * @see {@link BunMultipartAdapterService} The multipart adapter implementation */ export declare function defineBunEnvironment(): { tokens: Map, AnyInjectableType>; }; //# sourceMappingURL=define-environment.d.mts.map