import type { Mappable } from '@atlaskit/editor-prosemirror/transform'; import { Step, StepResult } from '@atlaskit/editor-prosemirror/transform'; import type { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model'; /** * For more context on what this is about: * @see https://discuss.prosemirror.net/t/preventing-image-placeholder-replacement-from-being-undone/1394 */ export declare class SetAttrsStep extends Step { pos: number; attrs: object; constructor(pos: number, attrs: object); apply(doc: ProseMirrorNode): StepResult; invert(doc: ProseMirrorNode): SetAttrsStep; map(mapping: Mappable): SetAttrsStep | null; toJSON(): { attrs: object; pos: number; stepType: string; }; static fromJSON(_schema: Schema, json: { attrs: object; pos?: number; }): SetAttrsStep; }