import { Compartment } from '@codemirror/state'; import { EditorView } from '@codemirror/view'; import { type RefObject } from 'react'; /** * Attribute used to expose the placeholder text on the content element so it can * be rendered through a CSS `::after` pseudo-element. */ export declare const placeholderDataAttribute = "data-placeholder"; /** * Attribute set on the scroll element while a placeholder is visible, used to * scope the styles that grow the line and gutter to fit it. */ export declare const placeholderReservedAttribute = "data-placeholder-reserved"; /** * Custom property carrying the measured placeholder height (in pixels). It is * set on the scroll element so both the content and the gutter can read it. */ export declare const placeholderHeightVariable = "--dt-editor-placeholder-height"; /** * Configures the placeholder functionality on the editor. * @param placeholderText - string to be used as placeholder text for editor * @param viewRef - Ref object for the editor * @param placeholderCompartment - compartment used to reconfigure the placeholder extension */ export declare const configurePlaceholder: (placeholderText: string | undefined, viewRef: RefObject, placeholderCompartment: Compartment) => void; //# sourceMappingURL=configure-placeholder.d.ts.map