import { Node, Path } from 'slate';
import type { ElementWithReference } from './ElementWithReference';
import { CustomElementPlugin } from '../../baseEditor';
import { EntityAccessor, EntityId, FieldValue, RelativeSingleField } from '@contember/react-binding';
import { EditorReferenceBlocks } from '../templating';
import { NormalizedEmbedHandlers } from '../embed';
import { NormalizedBlocks } from '../../../blocks';
export declare const referenceElementType: "reference";
export interface ReferenceElement extends ElementWithReference {
    type: typeof referenceElementType;
}
export declare const isReferenceElement: (node: Node) => node is ReferenceElement;
export interface ReferenceElementOptions {
    referenceDiscriminationField: RelativeSingleField | undefined;
    editorReferenceBlocks: EditorReferenceBlocks;
    embedHandlers: NormalizedEmbedHandlers | undefined;
    embedReferenceDiscriminateBy: FieldValue | undefined;
    embedContentDiscriminationField: RelativeSingleField | undefined;
    embedSubBlocks: NormalizedBlocks | undefined;
    getReferencedEntity: (path: Path, referenceId: EntityId) => EntityAccessor;
}
export declare const createReferenceElementPlugin: (args: ReferenceElementOptions) => CustomElementPlugin<ReferenceElement>;
//# sourceMappingURL=ReferenceElement.d.ts.map