/** * Vanilla custom element: * * Attributes: * - placeholder: initial placeholder text * - theme: "light" | "dark" | "auto" * - readonly: present means start in read-only mode * - outline: present means show document outline * - properties: present means show right-side property panel * - menubar / toolbar / statusbar: present (default) — set to "false" to hide. * * Events (CustomEvent on the element): * - rk-ready — { editor, toolbar } once the shell is mounted * - rk-change — { json, html } debounced doc update * - rk-selection — { editor } * * Methods: * - .editor / .toolbar — proxies to the inner shell * - .getValue(format?) — returns html | json | text | markdown * - .setValue(content) — replaces the document (HTML or JSON) * - .focus() / .blur() */ export declare class RKEditorElement extends HTMLElement { static get observedAttributes(): string[]; private shell; private mountHost; connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void; get editor(): import("@raazkhnl/rk-editor-core").WordEditor | undefined; get toolbar(): import("./index").WordToolbar | undefined; /** Get the document content. */ getValue(format?: 'html' | 'json' | 'text'): string | object; /** Replace the document contents. */ setValue(content: string | object): void; focus(): void; blur(): void; }