1 | import type { Node } from '@atlaskit/editor-prosemirror/model';
|
2 | export interface GetAttrsChange<T, V> {
|
3 | node: Node;
|
4 | prevAttrs?: T;
|
5 | newAttrs: T | false | undefined;
|
6 | options: V;
|
7 | }
|
8 | export type GetAttrsWithChangesRecorder<T, V> = {
|
9 | getAttrs(prevAttrs?: T | undefined, node?: Node): T | false | undefined;
|
10 | getAndResetAttrsChanges(): GetAttrsChange<T, V>[];
|
11 | };
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export default function getAttrsWithChangesRecorder<T, V>(getAttrs: (prevAttrs?: T, node?: Node) => T | false | undefined, options: V): GetAttrsWithChangesRecorder<T, V>;
|