1 | import { ErrorConstant } from '@remirror/core-constants';
|
2 | import type { GetFixedDynamic, GetPartialDynamic, ValidOptions } from '@remirror/core-types';
|
3 | import type { GetChangeOptionsReturn } from './types';
|
4 | export interface GetChangedOptionsProps<Options extends ValidOptions> {
|
5 | |
6 |
|
7 |
|
8 | previousOptions: GetFixedDynamic<Options>;
|
9 | |
10 |
|
11 |
|
12 | update: GetPartialDynamic<Options>;
|
13 | |
14 |
|
15 |
|
16 | equals?: (valueA: unknown, valueB: unknown) => boolean;
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 | export declare function getChangedOptions<Options extends ValidOptions>(props: GetChangedOptionsProps<Options>): GetChangeOptionsReturn<Options>;
|
22 | export interface IsNameUniqueProps {
|
23 | |
24 |
|
25 |
|
26 | name: string;
|
27 | |
28 |
|
29 |
|
30 | set: Set<string>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 | code: ErrorConstant.DUPLICATE_HELPER_NAMES | ErrorConstant.DUPLICATE_COMMAND_NAMES;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export declare function throwIfNameNotUnique(props: IsNameUniqueProps): void;
|