1 | import type { ToJSContext } from '../../nodes/toJS';
|
2 | import { YAMLMap } from '../../nodes/YAMLMap';
|
3 | import { YAMLSeq } from '../../nodes/YAMLSeq';
|
4 | import type { CreateNodeContext } from '../../util';
|
5 | import type { Schema } from '../Schema';
|
6 | import type { CollectionTag } from '../types';
|
7 | export declare class YAMLOMap extends YAMLSeq {
|
8 | static tag: string;
|
9 | constructor();
|
10 | add: typeof YAMLMap.prototype.add;
|
11 | delete: typeof YAMLMap.prototype.delete;
|
12 | get: typeof YAMLMap.prototype.get;
|
13 | has: typeof YAMLMap.prototype.has;
|
14 | set: typeof YAMLMap.prototype.set;
|
15 | /**
|
16 | * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
|
17 | * but TypeScript won't allow widening the signature of a child method.
|
18 | */
|
19 | toJSON(_?: unknown, ctx?: ToJSContext): unknown[];
|
20 | static from(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLOMap;
|
21 | }
|
22 | export declare const omap: CollectionTag;
|