UNPKG

819 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 merge: boolean;
9 name: string;
10 sortMapEntries: ((a: Pair, b: Pair) => number) | null;
11 tags: Array<CollectionTag | ScalarTag>;
12 toStringOptions: Readonly<ToStringOptions> | null;
13 readonly [MAP]: CollectionTag;
14 readonly [SCALAR]: ScalarTag;
15 readonly [SEQ]: CollectionTag;
16 constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }: SchemaOptions);
17 clone(): Schema;
18}
19
\No newline at end of file