import type { Command } from '@atlaskit/editor-common/types';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import type { MediaNodeWithPosHandler, MediaPluginState } from '../pm-plugins/types';
/**
 * Note that Media Inline is inserted like a media single node into the media plugin state.
 * Though it is not of type mediaSingle, it shares the same `findMediaSingleNode` method
 *
 */
export declare const findMediaSingleNode: (mediaPluginState: MediaPluginState, id: string) => MediaNodeWithPosHandler | null;
export declare const findAllMediaSingleNodes: (mediaPluginState: MediaPluginState, id: string) => MediaNodeWithPosHandler[];
export declare const isMediaNode: (pos: number, state: EditorState) => boolean | null;
export declare const updateAllMediaSingleNodesAttrs: (id: string, attrs: object) => Command;
export declare const updateCurrentMediaNodeAttrs: (attrs: object, mediaNode: MediaNodeWithPosHandler) => Command;
export declare const updateMediaSingleNodeAttrs: (id: string, attrs: object) => Command;
export declare const replaceExternalMedia: (pos: number, attrs: object) => Command;
