import type { CLIConfig } from "./types"; /** Represents a created CLI instance exposing runtime helpers. */ export interface CLIInstance { /** Execute the CLI with optional argv (defaults to process.argv.slice(2)). */ run: (argv?: string[]) => Promise; /** Return a help string. Rendering is delegated to `@clibu/help` in the facade. */ help: () => string; /** The CLI configuration used to build this instance. */ config: CLIConfig; } /** * Create a CLI instance from a validated `CLIConfig`. * * The function performs early validation of option conflicts (alias/kind) * and returns a `run` function that builds an execution context and invokes * the target command's `run` handler. */ export declare function createCLI(config: CLIConfig): CLIInstance;