import { BaseEditor } from './base';
import { CodeEditorConfig, AutocompleteSchema, ValidationError } from './types';
export declare class CodeEditor extends BaseEditor {
    private languageCompartment;
    private lintCompartment;
    private autocompleteCompartment;
    private currentLanguage;
    private currentSchema;
    constructor(config: CodeEditorConfig);
    /** Switch the editor language */
    setLanguage(language: string): void;
    /** Get the current language identifier */
    getLanguage(): string;
    /** Update the autocomplete schema */
    setAutocompleteSchema(schema: AutocompleteSchema): void;
    /** Set inline error markers from external validation */
    setErrors(errors: ValidationError[]): void;
    /** Remove all inline error markers */
    clearErrors(): void;
    /** Insert text at the current cursor position */
    insertText(text: string): void;
    /** Get the currently selected text */
    getSelection(): string;
}
//# sourceMappingURL=code-editor.d.ts.map