import "../editor/mod.js"; /** * `` — markdown document controller. * * Shadow DOM holds the rendered block tree and styles. * Light DOM holds the `
` source (SSR-friendly, formatter-safe).
 *
 * Children are plain `
` elements, not custom elements. * Each div stores `data-md-raw` and `data-md-attrs` (JSON). * * When `editable` attribute is present, enables click-to-edit, insert handles, * and block actions. */ export declare class EmkomaDocumentElement extends HTMLElement { static formAssociated: boolean; private readonly shadow; private readonly internals; private readonly blockPopupWrapper; private _editingDiv; /** * Single source of truth. The shadow tree and the light-DOM `
` are both
     * projections of this — never read document content back out of them.
     */
    private _state;
    private _originalRaw;
    private _formDataHandler;
    private _docMouseDownHandler;
    private _shadowHandlersBound;
    constructor();
    /** Raw markdown source, from whichever representation is currently live. */
    get raw(): string;
    set raw(value: string);
    /** Read the initial markdown out of the light DOM. Only used to seed state. */
    private readSource;
    /**
     * Write markdown into the light DOM `
` without re-parsing.
     * Creates the `
` when absent so programmatically created elements
     * (no SSR light DOM) are still writable.
     */
    private writeSource;
    /** Project current state into the light DOM `
` and the form value. */
    private syncSource;
    get editable(): boolean;
    get blocked(): boolean;
    /** Serialize the document back to markdown. */
    serialize(): string;
    connectedCallback(): void;
    disconnectedCallback(): void;
    formResetCallback(): void;
    formDisabledCallback(disabled: boolean): void;
    /** Re-parse content with current handlers. Call after registering custom block handlers. */
    hydrate(): void;
    static get observedAttributes(): string[];
    attributeChangedCallback(name: string): void;
    /** Project `_state` into the shadow tree. Never reads content back out. */
    private render;
    private createDocToolbar;
    private createBlockDiv;
    private createSimpleWrapper;
    private createBlockWrapper;
    private showBlockPopup;
    private dismissBlockPopup;
    private enterBlockEdit;
    private commitBlockEdit;
    private setupEditableHandlers;
    /** Click outside → commit active edit. Removed again on disconnect. */
    private bindOutsideMouseDown;
    private createInsertHandle;
    private showInsertMenu;
    private insertBlock;
    private removeBlock;
    /** Find the rendered div for a model index. */
    private blockDivAt;
    private showAdjacentHandles;
    private hideAdjacentHandles;
}
//# sourceMappingURL=emkoma-document.element.d.ts.map