1 | import { SchemaOptions } from '../options.js';
|
2 | import type { CollectionTag, ScalarTag } from './types.js';
|
3 | declare const tagsByName: {
|
4 | binary: ScalarTag;
|
5 | bool: ScalarTag & {
|
6 | test: RegExp;
|
7 | };
|
8 | float: ScalarTag;
|
9 | floatExp: ScalarTag;
|
10 | floatNaN: ScalarTag;
|
11 | floatTime: ScalarTag;
|
12 | int: ScalarTag;
|
13 | intHex: ScalarTag;
|
14 | intOct: ScalarTag;
|
15 | intTime: ScalarTag;
|
16 | map: CollectionTag;
|
17 | merge: ScalarTag & {
|
18 | identify(value: unknown): boolean;
|
19 | test: RegExp;
|
20 | };
|
21 | null: ScalarTag & {
|
22 | test: RegExp;
|
23 | };
|
24 | omap: CollectionTag;
|
25 | pairs: CollectionTag;
|
26 | seq: CollectionTag;
|
27 | set: CollectionTag;
|
28 | timestamp: ScalarTag & {
|
29 | test: RegExp;
|
30 | };
|
31 | };
|
32 | export type TagId = keyof typeof tagsByName;
|
33 | export type Tags = Array<ScalarTag | CollectionTag | TagId>;
|
34 | export declare const coreKnownTags: {
|
35 | 'tag:yaml.org,2002:binary': ScalarTag;
|
36 | 'tag:yaml.org,2002:merge': ScalarTag & {
|
37 | identify(value: unknown): boolean;
|
38 | test: RegExp;
|
39 | };
|
40 | 'tag:yaml.org,2002:omap': CollectionTag;
|
41 | 'tag:yaml.org,2002:pairs': CollectionTag;
|
42 | 'tag:yaml.org,2002:set': CollectionTag;
|
43 | 'tag:yaml.org,2002:timestamp': ScalarTag & {
|
44 | test: RegExp;
|
45 | };
|
46 | };
|
47 | export declare function getTags(customTags: SchemaOptions['customTags'] | undefined, schemaName: string, addMergeTag?: boolean): (CollectionTag | ScalarTag)[];
|
48 | export {};
|