import { Node as PMNode } from 'prosemirror-model';
import { EditorView } from 'prosemirror-view';
import * as React from 'react';
import { getPosHandler } from '../../../nodeviews';
declare type EditorContext<T> = React.Context<T> & {
    value: T;
};
export interface CardProps {
    children?: React.ReactNode;
    node: PMNode;
    selected: boolean;
    view: EditorView;
    getPos: getPosHandler;
}
export interface SmartCardProps extends CardProps {
    cardContext?: EditorContext<any>;
}
export declare function Card(SmartCardComponent: React.ComponentType<SmartCardProps>, UnsupportedComponent: React.ComponentType): React.ComponentType<CardProps>;
export {};
