import { EditorMetadata } from '../text-editor.types';
import { Node } from 'prosemirror-model';
/**
 * Extracts metadata from a ProseMirror document node
 *
 * This function traverses the entire document tree and collects information about
 * special elements like images and links.
 *
 * @param doc - The ProseMirror document node to extract metadata from
 * @returns A metadata object containing arrays of images and links found in the document
 */
export declare function getMetadataFromDoc(doc: Node): EditorMetadata;
/**
 * Determines if metadata has changed between two states
 * Handles duplicates correctly but is order-insensitive
 *
 * @param oldMetadata - The previous metadata state to compare against
 * @param newMetadata - The current metadata state
 * @returns True if there are any differences between the metadata objects, false otherwise
 */
export declare function hasMetadataChanged(oldMetadata: EditorMetadata, newMetadata: EditorMetadata): boolean;
//# sourceMappingURL=metadata-utils.d.ts.map