import type { CliCommand } from './context/types.js'; import type { CliLogger } from './utils/logger.js'; export interface CliResult { schemaVersion: 1; success: boolean; command?: string; exitCode: number; data?: unknown; error?: { code: string; message: string; hint?: string; }; } export interface RunCliOptions { /** Project directory. The caller's working directory is never changed. */ cwd?: string; /** Enable terminal prompts. Defaults to false for library callers. */ interactive?: boolean; /** Receive human diagnostics separately from returned data. */ logger?: CliLogger; /** Opt into CLI telemetry. Disabled by default for library callers. */ telemetry?: boolean; /** Override command registration when embedding or testing the runner. */ commands?: CliCommand[]; } /** * Run a command without changing process arguments, cwd, or exit status. * @param args Command arguments, excluding the executable name. * @param options Host integration options. * @returns A versioned result, including failure details and a suggested exit code. * @example * const result = await runCli(['projects', 'list', '--json'], { cwd: projectDir }); */ export declare const runCli: (args: string[], options?: RunCliOptions) => Promise; export { CliError } from './core/errors.js'; export type { CliCommand, CliContext, CliFlag } from './context/types.js'; export { createCliLogger } from './utils/logger.js'; export type { CliLogger } from './utils/logger.js'; export { ControlPlaneClient, createControlPlaneClient, createControlPlaneClientFromConfig, createProject, resolveInstance, requireInstanceBackendUrl, } from './control-plane/index.js'; export type { ControlPlaneClientConfig, CreateInstanceRequest, } from './control-plane/index.js'; export type { Instance } from './types.js';