import { EditorState } from 'prosemirror-state'; import { Schema } from 'prosemirror-model'; import { ElementStyles } from '@microsoft/fast-element'; import { EditorView } from 'prosemirror-view'; import { Constructor } from '../../../shared/utils/mixins'; import { Locale } from '../../../shared/localization/Locale'; import { RteConfig, RteConfigImpl } from './config'; import { HostState } from './features/internal/core'; import { RteFeature, RteFeatureImpl } from './feature'; import { RteDocument, RteFragment } from './document'; import { TextblockAttrs } from './utils/textblock-attrs'; import { RteHtmlParser } from './html-parser'; import { RteHtmlSerializer } from './html-serializer'; import { getPublicInterface } from './public-interface'; export type RteInstanceOptions = { initialDocument?: RteDocument; onChange?: () => void; foreignHtmlParser?: RteHtmlParser; foreignHtmlSerializer?: RteHtmlSerializer; }; export declare class RteInstance { readonly options?: RteInstanceOptions | undefined; constructor(config: RteConfig, options?: RteInstanceOptions | undefined); getDocument(): RteDocument; reset(initialDocument?: RteDocument): void; replaceSelection(content: RteFragment, options?: { cursorPlacement?: 'end' | 'start'; selectContent?: boolean; }): void; replaceDocument(newDocument: RteDocument, options?: { cursorPlacement?: 'start' | 'end'; selectContent?: boolean; }): void; scrollIntoView(): void; feature: typeof getPublicInterface; } export declare class RteInstanceImpl { readonly options?: RteInstanceOptions | undefined; readonly facade: RteInstance; state: EditorState; readonly config: RteConfigImpl; readonly schema: Schema; readonly textblockAttrs: TextblockAttrs; readonly features: RteFeatureImpl[]; readonly styles: ElementStyles; readonly foreignHtmlParser: RteHtmlParser; readonly foreignHtmlSerializer: RteHtmlSerializer; getFeature(name: string): T; getPublicInterface(Feature: Constructor, featureId?: string): any; constructor(instanceFacade: RteInstance, configFacade: RteConfig, options?: RteInstanceOptions | undefined); protected initState(initialDoc?: RteDocument): void; reset(initialDocument?: RteDocument): void; view: EditorView | null; createView(target: HTMLElement): void; destroyViewIfNeeded(): void; createComponent(type: Constructor): T; getLocale(): Locale; get tr(): import('prosemirror-state').Transaction; dispatchTransaction: (tr: any) => EditorState; hostState(): HostState; updateHostState(hostState: HostState | null): void; }