import { Command } from '@oclif/core';
import { type JsonFlags } from './prompt-json.js';
/**
 * Lightweight base command with prompt() method for JSON mode support.
 *
 * Extends oclif Command with a drop-in replacement for inquirer.prompt()
 * that works in both interactive and JSON/agent modes. Use this as the
 * base class for commands that need interactive prompts but don't require
 * PMO database context (for PMO commands, use PMOCommand which extends this).
 *
 * Usage:
 * ```typescript
 * import { PromptCommand } from '../../lib/prompt-command.js';
 *
 * export default class MyCommand extends PromptCommand {
 *   async run(): Promise<void> {
 *     const { flags } = await this.parse(MyCommand);
 *     const { selection } = await this.prompt([{
 *       type: 'list',
 *       name: 'selection',
 *       message: 'Pick one:',
 *       choices: items.map(i => ({
 *         name: i.name,
 *         value: i.id,
 *         command: `prlt my-command --selection "${i.id}" --json`,
 *       })),
 *     }], { flags, commandName: 'my-command' });
 *   }
 * }
 * ```
 */
export declare abstract class PromptCommand extends Command {
    /**
     * TTY-aware log method - strips ANSI codes and emoji in non-TTY mode.
     *
     * Use this instead of this.log() when outputting styled text (chalk colors, emoji prefixes).
     * In TTY mode, outputs styled text as-is. In non-TTY mode, strips ANSI and emoji.
     *
     * @param message - The styled message (may contain ANSI codes and emoji)
     * @param args - Additional arguments passed to this.log()
     */
    protected logPlain(message?: string, ...args: string[]): void;
    /**
     * Check if plain output mode is active (non-TTY, PRLT_PLAIN, NO_COLOR).
     * Convenience wrapper for use in commands.
     */
    protected get isPlain(): boolean;
    /**
     * Check if running in non-TTY environment.
     * Convenience wrapper for use in commands.
     */
    protected get isNonTTY(): boolean;
    /**
     * Prompt wrapper - drop-in replacement for inquirer.prompt
     *
     * Works in BOTH modes:
     * - Interactive mode: calls inquirer.prompt normally (human sees menu)
     * - JSON/Agent mode: outputs prompt as structured JSON and exits
     *
     * This is the simplest way to make any inquirer.prompt call work for both humans and agents.
     * Just replace `await inquirer.prompt(questions)` with `await this.prompt(questions, jsonModeConfig)`
     *
     * @param questions - Inquirer question config(s)
     * @param jsonModeConfig - JSON mode configuration (null to disable JSON mode handling)
     * @returns Answers object (only in interactive mode)
     *
     * @example
     * ```typescript
     * // Before (breaks in JSON mode):
     * const { column } = await inquirer.prompt([{
     *   type: 'list',
     *   name: 'column',
     *   message: 'Select column:',
     *   choices: columns.map(c => ({ name: c, value: c })),
     * }]);
     *
     * // After (works in both modes):
     * const { column } = await this.prompt([{
     *   type: 'list',
     *   name: 'column',
     *   message: 'Select column:',
     *   choices: columns.map(c => ({
     *     name: c,
     *     value: c,
     *     command: `prlt ticket move --column "${c}" --json`,
     *   })),
     * }], {
     *   flags,
     *   commandName: 'ticket move',
     * });
     * ```
     */
    protected prompt<T extends Record<string, unknown>>(questions: Array<{
        type: string;
        name: string;
        message: string;
        choices?: Array<string | {
            name: string;
            value: unknown;
            disabled?: boolean | string;
            command?: string;
        } | unknown>;
        default?: unknown;
        validate?: (input: unknown) => boolean | string;
        when?: boolean | ((answers: Record<string, unknown>) => boolean);
        filter?: (input: unknown) => unknown;
        pageSize?: number;
        [key: string]: unknown;
    }>, jsonModeConfig?: {
        flags: JsonFlags & Record<string, unknown>;
        commandName: string;
    } | null): Promise<T>;
}
