import { type EditableArtifactSession } from "@opengeni/sdk/editable-artifacts"; import { type ReactNode } from "react"; import { type DocumentCommitHandler, type DocumentEditorProjection, type DocumentProjectionArtifactSurfaceProps } from "./document-editor.js"; import { type EditableArtifactDownload } from "./artifact-download.js"; import { type OpenGeniText } from "../../messages/runtime.js"; export type EditableDocumentArtifactSurfaceProps = Omit & { session: EditableArtifactSession; subtitle?: ReactNode | undefined; readOnly?: boolean | undefined; /** Called only after the durable SDK command has been accepted locally. */ onCommit?: DocumentCommitHandler | undefined; /** Host-authenticated DOCX export; omitted for hosts without export support. */ download?: EditableArtifactDownload | undefined; }; /** * Durable document editor over the public SDK session. Canonical state and * speculative replay remain Worker-owned; React receives bounded projections. */ export declare function EditableDocumentArtifactSurface(props: EditableDocumentArtifactSurfaceProps): import("react").JSX.Element; /** Deterministically composes summary/body/sections/review at one Worker revision. */ export declare function composeDocumentEditorProjection(t: OpenGeniText, session: EditableArtifactSession): Promise; export declare function minimalUtf16TextEdit(before: string, after: string): { range: { start: number; end: number; }; replacement: string; } | null;