import { EventEmitter } from '../../stencil-public-runtime';
import { FileFormat, FileFormatMap } from '../editor/languageUtils';
/**
 * @slot text - The contents of the code fragment
 */
export declare class CodeFragment {
  /**
   * Disallow editing of the editor contents when set to `true`
   */
  readOnly: boolean;
  /**
   * Programming language of the CodeFragment
   */
  programmingLanguage: string | undefined;
  /**
   * List of all supported programming languages
   */
  languageCapabilities: FileFormatMap;
  /**
   * List of programming languages that can be executed in the current context
   */
  executableLanguages: FileFormatMap;
  onDiscoverKernels({ detail, }: CustomEvent<{
    languages: FileFormatMap;
  }>): void;
  /**
   * Event emitted when the language of the editor is changed.
   */
  languageChange: EventEmitter<FileFormat>;
  /**
   * Function to call when the user selects a new language from the language picker dropdown.
   */
  private onSelectLanguage;
  render(): any;
}
