/** * PraisonAI CLI Specification - TypeScript Runtime * Parsed and validated spec from cli-spec.v1.yaml */ export declare const CLI_SPEC_VERSION = "1.0.0"; export interface CommandArg { name: string; type: 'string' | 'integer' | 'boolean'; required: boolean; position?: number; description?: string; } export interface CommandFlag { name: string; short?: string; type: 'string' | 'integer' | 'boolean'; default?: string | number | boolean; enum?: string[]; description?: string; required?: boolean; } export interface Subcommand { description: string; args?: CommandArg[]; flags?: CommandFlag[]; } export interface Command { description: string; args?: CommandArg[]; flags?: CommandFlag[]; subcommands?: Record; } export declare const COMMANDS: Record; export declare const GLOBAL_FLAGS: CommandFlag[]; export declare const EXIT_CODES: { readonly SUCCESS: 0; readonly RUNTIME_ERROR: 1; readonly INVALID_ARGUMENTS: 2; readonly CONFIG_ERROR: 3; readonly NETWORK_ERROR: 4; readonly AUTH_ERROR: 5; }; export type ExitCode = typeof EXIT_CODES[keyof typeof EXIT_CODES]; export interface SuccessOutput { success: true; data: T; meta?: { duration_ms?: number; model?: string; tokens?: { input?: number; output?: number; }; }; } export interface ErrorOutput { success: false; error: { code: string; message: string; details?: Record; }; } export type CLIOutput = SuccessOutput | ErrorOutput; export declare const ENV_VARS: { readonly PRAISONAI_MODEL: "PRAISONAI_MODEL"; readonly PRAISONAI_PROFILE: "PRAISONAI_PROFILE"; readonly PRAISONAI_VERBOSE: "PRAISONAI_VERBOSE"; readonly PRAISONAI_CONFIG: "PRAISONAI_CONFIG"; readonly PRAISONAI_DB: "PRAISONAI_DB"; readonly OPENAI_API_KEY: "OPENAI_API_KEY"; readonly ANTHROPIC_API_KEY: "ANTHROPIC_API_KEY"; readonly GOOGLE_API_KEY: "GOOGLE_API_KEY"; }; export declare const CONFIG_FILES: readonly [".praisonai.yaml", ".praisonai.json"]; export interface ConfigSchema { model?: string; verbose?: boolean; stream?: boolean; profiles?: Record; } export declare function validateCommand(command: string): command is keyof typeof COMMANDS; export declare function getCommandSpec(command: string): Command | undefined; export declare function getAllFlags(command: string): CommandFlag[];