import React from 'react';
import type { Key } from '../hooks/useInputOrchestrator.js';
import type { ResourceMetadata } from '@dexto/core';
import { type TuiAgentBackend } from '../agent-backend.js';
export interface ResourceAutocompleteHandle {
    handleInput: (input: string, key: Key) => boolean;
}
interface ResourceAutocompleteProps {
    isVisible: boolean;
    searchQuery: string;
    onSelectResource: (resource: ResourceMetadata) => void;
    onLoadIntoInput?: (text: string) => void;
    onClose: () => void;
    agent: TuiAgentBackend;
}
/**
 * Inner component - wrapped with React.memo below
 */
declare const ResourceAutocompleteInner: React.ForwardRefExoticComponent<ResourceAutocompleteProps & React.RefAttributes<ResourceAutocompleteHandle>>;
/**
 * Export with React.memo to prevent unnecessary re-renders from parent
 * Only re-renders when props actually change (shallow comparison)
 */
declare const ResourceAutocomplete: typeof ResourceAutocompleteInner;
export default ResourceAutocomplete;
//# sourceMappingURL=ResourceAutocomplete.d.ts.map