import { RuntimeAdapter } from "./adapter.mjs"; import { GlobalForDetect } from "./detect.mjs"; //#region src/runtime/auto.d.ts /** * Create a runtime adapter for the current environment. * * Detection order follows {@link detectRuntime}: Bun → Deno → Node → unknown. * Only Deno needs a distinct adapter; Bun, Node, and unknown runtimes all use * the Node adapter because they expose a Node-compatible `process` global. * * @param globals - Override `globalThis` for testing. Production callers * should omit this parameter. * @returns A {@linkcode RuntimeAdapter} for the detected runtime. * * @example * ```ts * import { cli } from '@kjanat/dreamcli'; * * // Auto-detects Node/Bun/Deno and creates the right adapter * cli('mycli').run(); // uses createAdapter() internally * ``` */ declare function createAdapter(globals?: GlobalForDetect): RuntimeAdapter; //#endregion export { createAdapter };