import { EditorProps, Language, PrismEditor } from './types'; declare const EditorContext: import('react').Context<[PrismEditor, EditorProps] | null>; /** * The core editor component of the library. * @param props Props to customize some of the appearance and behavior of the editor. */ declare const Editor: import('react').NamedExoticComponent>; /** Equivalent to `document` in a browser setting, `null` otherwise. */ declare const doc: Document | null; /** Object storing all language specific behavior. */ declare const languageMap: Record; declare const preventDefault: (e: Event) => void; declare const addListener: (target: HTMLElement, type: T, listener: (this: HTMLElement, ev: HTMLElementEventMap[T]) => any, options?: boolean | AddEventListenerOptions) => void; declare const useStableRef: (value: T) => T; /** * Counts number of lines in the string between `start` and `end`. * If start and end are omitted, the whole string is searched. */ declare const numLines: (str: string, start?: number, end?: number) => number; declare let selectionChange: null | ((force?: true) => void); export { Editor, addListener, preventDefault, languageMap, selectionChange, numLines, useStableRef, doc, EditorContext, };