import { BlockNoteEditor, BlockSchema, InlineContentSchema, StyleSchema } from "@blocknote/core"; import React, { ComponentProps, HTMLAttributes, ReactNode, Ref } from "react"; import { BlockNoteDefaultUIProps } from "./BlockNoteDefaultUI.js"; import "./styles.css"; export type BlockNoteViewProps = { editor: BlockNoteEditor; theme?: "light" | "dark"; /** * Locks the editor from being editable by the user if set to `false`. */ editable?: boolean; /** * A callback function that runs whenever the text cursor position or selection changes. */ onSelectionChange?: () => void; /** * A callback function that runs whenever the editor's contents change. */ onChange?: () => void; children?: ReactNode; ref?: Ref | undefined; } & Omit, "onChange" | "onSelectionChange" | "children"> & BlockNoteDefaultUIProps; declare function BlockNoteViewComponent(props: BlockNoteViewProps, ref: React.Ref): import("react/jsx-runtime").JSX.Element; export declare const BlockNoteViewRaw: , ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: ComponentProps> & { ref?: React.ForwardedRef; }) => ReturnType>; export {};