/**
 * TUI selector for picking a user message to branch from.
 *
 * Lists all user messages in chronological order with scroll support.
 * Selecting a message creates a new conversation branch at that point.
 */
import { type Component, Container } from '../../../tui/index.js';
interface UserMessageItem {
    id: string;
    text: string;
    timestamp?: string;
}
/**
 * Custom user message list component with selection
 */
declare class UserMessageList implements Component {
    private messages;
    private selectedIndex;
    onSelect?: (entryId: string) => void;
    onCancel?: () => void;
    private maxVisible;
    constructor(messages: UserMessageItem[]);
    invalidate(): void;
    render(width: number): string[];
    handleInput(keyData: string): void;
}
/**
 * Component that renders a user message selector for branching
 */
export declare class UserMessageSelectorComponent extends Container {
    private messageList;
    constructor(messages: UserMessageItem[], onSelect: (entryId: string) => void, onCancel: () => void);
    getMessageList(): UserMessageList;
}
export {};
//# sourceMappingURL=user-message-selector.d.ts.map