import { Registry } from "./registry"; import type { AttributesObject } from "../data"; export type SpanRenderer = (element: HTMLSpanElement, attribs: AttributesObject) => void; /** * Span is an element including editable text. * It has it's own styles such as bold/italic/underline. * * The styles of the span can be mixed. A range of text * can have multiple styles. */ export interface SpanStyle { name: string; className?: string; onSpanCreated?: (elem: HTMLElement) => void; } export declare class SpanRegistry extends Registry { readonly styles: Map; readonly classnames: Map; register(style: SpanStyle): void; }