UNPKG

936 BTypeScriptView Raw
1import type { ToJSContext } from '../../nodes/toJS';
2import { YAMLMap } from '../../nodes/YAMLMap';
3import { YAMLSeq } from '../../nodes/YAMLSeq';
4import type { CreateNodeContext } from '../../util';
5import type { Schema } from '../Schema';
6import type { CollectionTag } from '../types';
7export 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}
22export declare const omap: CollectionTag;