import type { LinkStepMetadata } from '@atlaskit/adf-schema/steps';
import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
/**
 * Records metadata about the user action and input method relating to a transaction
 * as a custom LinkStepMetadata prosemirror step so that it is preserved in
 * the history for undo/redo.
 */
export declare function addLinkMetadata(initialSelection: Selection, tr: Transaction, metadata: LinkStepMetadata): Transaction;
