1 | import type { CreateNodeContext } from '../doc/createNode';
|
2 | import type { CollectionItem } from '../parse/cst';
|
3 | import type { Schema } from '../schema/Schema';
|
4 | import type { StringifyContext } from '../stringify/stringify';
|
5 | import { addPairToJSMap } from './addPairToJSMap';
|
6 | import { NODE_TYPE } from './identity';
|
7 | import type { Node } from './Node';
|
8 | import type { ToJSContext } from './toJS';
|
9 | export declare function createPair(key: unknown, value: unknown, ctx: CreateNodeContext): Pair<Node, Node>;
|
10 | export declare class Pair<K = unknown, V = unknown> {
|
11 | readonly [NODE_TYPE]: symbol;
|
12 |
|
13 | key: K;
|
14 |
|
15 | value: V | null;
|
16 |
|
17 | srcToken?: CollectionItem;
|
18 | constructor(key: K, value?: V | null);
|
19 | clone(schema?: Schema): Pair<K, V>;
|
20 | toJSON(_?: unknown, ctx?: ToJSContext): ReturnType<typeof addPairToJSMap>;
|
21 | toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
|
22 | }
|