import { Kernel } from './main.ts'; import type { ApplicationService } from '../../src/types.ts'; /** * Create and configure an Ace command kernel for AdonisJS applications. * This function abstracts the kernel setup logic and can be used in different * environments with appropriate configurations. * * - In console environment, Ace manages the lifecycle of the process * - In other environments, Ace can be pulled from the container to run commands * * @param app - The AdonisJS application service instance * @param commandName - Optional specific command name for optimized loading * * @example * ```ts * const app = new Application(new URL('../', import.meta.url)) * const kernel = createAceKernel(app) * * // Run a specific command * await kernel.handle(['make:controller', 'UserController']) * ``` */ export declare function createAceKernel(app: ApplicationService, commandName?: string): Kernel;