import type { ShellCommandContext } from '../shell-commands';
export interface SelectOption<T> {
    label: string;
    value: T;
}
export interface SelectPromptOptions<T> {
    ctx: ShellCommandContext;
    label: string;
    items: SelectOption<T>[];
    size?: number;
    defaultIndex?: number;
}
export declare class PromptAbortError extends Error {
    constructor();
}
export declare function selectPrompt<T>(opts: SelectPromptOptions<T>): Promise<T>;
export interface TextPromptOptions {
    ctx: ShellCommandContext;
    label: string;
    defaultValue?: string;
}
export declare function textPrompt(opts: TextPromptOptions): Promise<string>;
export interface HiddenPromptOptions {
    ctx: ShellCommandContext;
    label: string;
    /** If true, echoes a star per character instead of nothing. */
    mask?: boolean;
}
export declare function hiddenPrompt(opts: HiddenPromptOptions): Promise<string>;
//# sourceMappingURL=tty-prompt.d.ts.map