1 | import type { Document } from '../doc/Document.js';
|
2 | import type { Node } from './Node.js';
|
3 | export interface AnchorData {
|
4 | aliasCount: number;
|
5 | count: number;
|
6 | res: unknown;
|
7 | }
|
8 | export interface ToJSContext {
|
9 | anchors: Map<Node, AnchorData>;
|
10 | doc: Document<Node, boolean>;
|
11 | keep: boolean;
|
12 | mapAsMap: boolean;
|
13 | mapKeyWarned: boolean;
|
14 | maxAliasCount: number;
|
15 | onCreate?: (res: unknown) => void;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare function toJS(value: any, arg: string | null, ctx?: ToJSContext): any;
|