import { DisplayMode } from '@microsoft/sp-core-library'; import { WebPartContext } from '@microsoft/sp-webpart-base'; import { ErrorService } from '../errorBoundary/errorService'; /** * Props / context shape exposed by the RichTextEditor NPM package. * Mirrors the IRichTextEditorContext that previously lived in RichTextEditorApp.tsx * inside the SPFx web part project. */ export interface IRichTextEditorContext { spfxContext: WebPartContext; displayMode: DisplayMode; errorService: ErrorService; /** Current HTML content of the editor. */ value?: string; onChange?: (textContent: string) => void; required?: boolean; setFocus?: boolean; placeholder?: string; saveInterval?: number; maxLength?: number; maxImageSize?: number; disableDragAndDrop?: boolean; } /** * React context consumed by all sub-components of RichTextEditor. * Populated by the component itself. */ export declare const RichTextEditorContext: import("react").Context;