UNPKG

@textbus/platform-browser

Version:

Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.

32 lines (31 loc) 737 B
import { Observable } from '@tanbo/stream'; import { Rect } from './_utils/uikit'; export interface CaretLimit { top: number; bottom: number; } export interface CaretPosition { left: number; top: number; height: number; } export interface Caret { onPositionChange: Observable<CaretPosition | null>; readonly rect: Rect; refresh(): void; } export declare abstract class Input { /** * @experimental */ abstract composition: boolean; /** * @experimental */ abstract onReady: Promise<void>; abstract caret: Caret; abstract disabled: boolean; abstract focus(nativeRange: Range, reFlash: boolean): void; abstract blur(): void; abstract destroy(): void; }