UNPKG

799 BTypeScriptView Raw
1import { MAP, SCALAR, SEQ } from '../nodes/identity.js';
2import type { Pair } from '../nodes/Pair.js';
3import type { SchemaOptions, ToStringOptions } from '../options.js';
4import type { CollectionTag, ScalarTag } from './types.js';
5export declare class Schema {
6 compat: Array<CollectionTag | ScalarTag> | null;
7 knownTags: Record<string, CollectionTag | ScalarTag>;
8 name: string;
9 sortMapEntries: ((a: Pair, b: Pair) => number) | null;
10 tags: Array<CollectionTag | ScalarTag>;
11 toStringOptions: Readonly<ToStringOptions> | null;
12 readonly [MAP]: CollectionTag;
13 readonly [SCALAR]: ScalarTag;
14 readonly [SEQ]: CollectionTag;
15 constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }: SchemaOptions);
16 clone(): Schema;
17}
18
\No newline at end of file