UNPKG

prism-code-editor-lightweight

Version:

Lightweight, extensible code editor component for the web using Prism

9 lines (7 loc) 599 B
import { EditorEventMap, PrismEditor } from '../index.js'; declare const scrollToEl: (editor: PrismEditor, el: HTMLElement, paddingTop?: number) => void; declare const getLineStart: (text: string, position: number) => number; declare const getLineEnd: (text: string, position: number) => number; declare const addListener: <T extends keyof EditorEventMap>(editor: PrismEditor, type: T, listener: EditorEventMap[T]) => () => void; declare const getStyleValue: (el: HTMLElement, prop: keyof CSSStyleDeclaration) => number; export { scrollToEl, getLineStart, getLineEnd, addListener, getStyleValue };