import { ReactElement, ForwardRefRenderFunction } from 'react';
import { PromptEditorRef } from './plugins/ImperativeAPIPlugin';
export type ReferenceItem = {
    resourceId: string;
    resourceType: "table" | "connector";
    name: string;
    description?: string;
};
export interface PromptEditorProps {
    defaultState: string;
    debug?: boolean;
    isEditable?: boolean;
    placeholder?: ReactElement | ((isEditable: boolean) => ReactElement | null);
    onChange?: (text: string, state: object) => void;
    onError?: (error: Error) => void;
    onSubmit?: () => void;
    /** Dynamic list of references (tables, connectors) shown when typing # */
    references?: ReferenceItem[];
    /** Optional app callback when a reference is inserted */
    onAddReference?: (resourceId: string, resourceType: "table" | "connector") => void;
}
export declare const BasePromptEditor: ForwardRefRenderFunction<PromptEditorRef, PromptEditorProps>;
export declare const PromptEditor: import('react').ForwardRefExoticComponent<PromptEditorProps & import('react').RefAttributes<PromptEditorRef>>;
export type { PromptEditorRef } from './plugins/ImperativeAPIPlugin';
