import type { Mark, Node as ProseMirrorNode, ParseRule } from 'prosemirror-model';
import type { GlobalAttribute, SchemaOptions } from '../types';
export declare function fromString(value: any): any;
/**
 * This function merges extension attributes into parserule attributes (`attrs` or `getAttrs`).
 * Cancels when `getAttrs` returns `false`.
 * @param parseRule ProseMirror ParseRule
 * @param extensionAttributes List of attributes to inject
 */
export declare function injectExtensionAttributesToParseRule(parseRule: ParseRule, extensionAttributes: GlobalAttribute[]): ParseRule;
/** Merge `class`, `style`, and other attributes */
export declare function mergeAttributes(...objects: Record<string, any>[]): Record<string, any>;
export declare function getRenderedAttributes(nodeOrMark: ProseMirrorNode | Mark, attributes: GlobalAttribute[], options: SchemaOptions): Record<string, any>;
//# sourceMappingURL=globalAttributes.d.ts.map