import * as React from 'react';
import { CodeEditorTheme } from '../code-editor/index.js';
export { CodeEditorAPI, CodeEditorState, CodeEditorTheme, codeEditorTokens, codeEditorVariants } from '../code-editor/index.js';

interface CodeEditorProps {
    value?: string;
    onChange?: (value: string) => void;
    language?: string;
    readOnly?: boolean;
    theme?: CodeEditorTheme;
    className?: string;
    placeholder?: string;
    /** Optional action buttons rendered in the header bar */
    actions?: Array<{
        label: string;
        onClick: () => void;
    }>;
}
/**
 * CodeEditor component — a styled textarea-based code editor.
 *
 * Uses the headless @refraction-ui/code-editor core for state and ARIA.
 * Renders a simple monospace textarea with a header bar showing the language
 * label and optional action buttons. Syntax highlighting is a future enhancement.
 */
declare const CodeEditor: React.ForwardRefExoticComponent<CodeEditorProps & React.RefAttributes<HTMLDivElement>>;

export { CodeEditor, type CodeEditorProps };
