import { Ignitor } from '../../src/ignitor/main.ts'; import type { IgnitorOptions } from '../../src/types.ts'; import type { Kernel } from '../../modules/ace/kernel.ts'; /** * Factory for creating and configuring Ace command kernel instances. * This factory provides a convenient way to create Ace kernels either from * an existing Ignitor instance or by creating a new one from scratch. * * @example * ```ts * // Create from URL * const aceFactory = new AceFactory() * const kernel = await aceFactory.make(new URL('../', import.meta.url)) * * // Create from existing ignitor * const ignitor = new Ignitor(appRoot) * const kernel = await aceFactory.make(ignitor) * * // Run commands * await kernel.handle(['make:controller', 'UserController']) * ``` */ export declare class AceFactory { /** * Create an Ace kernel from an existing Ignitor instance * * @param ignitor - Existing Ignitor instance */ make(ignitor: Ignitor): Promise; /** * Create an Ace kernel from application root URL * * @param appRoot - Application root directory URL * @param options - Optional Ignitor configuration options */ make(appRoot: URL, options?: IgnitorOptions): Promise; }