import { type RefObject } from 'react';
import { type Value } from 'platejs';
export interface PlateEditorHandle {
    setValue: (value: Value) => void;
    setMarkdown: (markdown: string) => void;
}
export interface PlateEditorProps {
    value?: Value;
    onChange?: (value: Value) => void;
    onReady?: () => void;
    readOnly?: boolean;
    placeholder?: string;
    hideToolbar?: boolean;
    collabToken?: string;
    documentId?: string;
    getAccessToken?: () => Promise<string | null>;
}
export declare const PlateEditor: ({ ref, value, onChange, onReady, readOnly, placeholder, hideToolbar, getAccessToken }: PlateEditorProps & {
    ref?: RefObject<PlateEditorHandle | null>;
}) => import("react/jsx-runtime").JSX.Element;
