import React from 'react';
import type { Key } from '../hooks/useInputOrchestrator.js';
import type { PromptInfo } from '@dexto/core';
import { type TuiAgentBackend } from '../agent-backend.js';
export interface SlashCommandAutocompleteHandle {
    handleInput: (input: string, key: Key) => boolean;
}
interface SlashCommandAutocompleteProps {
    isVisible: boolean;
    searchQuery: string;
    onSelectPrompt: (prompt: PromptInfo) => void;
    onSelectSystemCommand?: (command: string) => void;
    onLoadIntoInput?: (command: string) => void;
    onSubmitRaw?: ((text: string) => Promise<void> | void) | undefined;
    onClose: () => void;
    agent: TuiAgentBackend;
}
/**
 * Inner component - wrapped with React.memo below
 */
declare const SlashCommandAutocompleteInner: React.ForwardRefExoticComponent<SlashCommandAutocompleteProps & React.RefAttributes<SlashCommandAutocompleteHandle>>;
/**
 * Export with React.memo to prevent unnecessary re-renders from parent
 * Only re-renders when props actually change (shallow comparison)
 */
export declare const SlashCommandAutocomplete: typeof SlashCommandAutocompleteInner;
export {};
//# sourceMappingURL=SlashCommandAutocomplete.d.ts.map