import { Node, Schema } from 'prosemirror-model';
import { EditorState, Transaction } from 'prosemirror-state';
import { Command } from '../../../types';
import { CardAppearance, CardReplacementInputMethod } from '../types';
export declare function shouldReplace(node: Node, compareLinkText?: boolean, compareToUrl?: string): boolean;
export declare function insertCard(tr: Transaction, cardAdf: Node, schema: Schema): Transaction;
export declare const replaceQueuedUrlWithCard: (url: string, cardData: any) => Command;
export declare const queueCardsFromChangedTr: (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, normalizeLinkText?: boolean) => Transaction;
export declare const changeSelectedCardToLink: (text?: string, href?: string) => Command;
export declare const changeSelectedCardToText: (text: string) => Command;
export declare const setSelectedCardAppearance: (appearance: CardAppearance) => Command;
