You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
815 B
19 lines
815 B
2 years ago
|
import { MAP, SCALAR, SEQ } from '../nodes/Node.js';
|
||
|
import type { Pair } from '../nodes/Pair.js';
|
||
|
import type { SchemaOptions, ToStringOptions } from '../options.js';
|
||
|
import type { CollectionTag, ScalarTag } from './types.js';
|
||
|
export declare class Schema {
|
||
|
compat: Array<CollectionTag | ScalarTag> | null;
|
||
|
knownTags: Record<string, CollectionTag | ScalarTag>;
|
||
|
merge: boolean;
|
||
|
name: string;
|
||
|
sortMapEntries: ((a: Pair, b: Pair) => number) | null;
|
||
|
tags: Array<CollectionTag | ScalarTag>;
|
||
|
toStringOptions: Readonly<ToStringOptions> | null;
|
||
|
readonly [MAP]: CollectionTag;
|
||
|
readonly [SCALAR]: ScalarTag;
|
||
|
readonly [SEQ]: CollectionTag;
|
||
|
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }: SchemaOptions);
|
||
|
clone(): Schema;
|
||
|
}
|