Files
NapCatQQ/.pnpm-store/v3/files/f5/f165cacd3a1e75307d4ca761b4bf7b9232bde195dce5a0c32b4a70392d9abf99f95ff22270c8c1b9e64f4b3599c556105ae62f442f8cc1f53dfcd1984feff9
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

49 lines
1.4 KiB
Plaintext

import type { SchemaOptions } from '../options';
import type { CollectionTag, ScalarTag } from './types';
declare const tagsByName: {
binary: ScalarTag;
bool: ScalarTag & {
test: RegExp;
};
float: ScalarTag;
floatExp: ScalarTag;
floatNaN: ScalarTag;
floatTime: ScalarTag;
int: ScalarTag;
intHex: ScalarTag;
intOct: ScalarTag;
intTime: ScalarTag;
map: CollectionTag;
merge: ScalarTag & {
identify(value: unknown): boolean;
test: RegExp;
};
null: ScalarTag & {
test: RegExp;
};
omap: CollectionTag;
pairs: CollectionTag;
seq: CollectionTag;
set: CollectionTag;
timestamp: ScalarTag & {
test: RegExp;
};
};
export type TagId = keyof typeof tagsByName;
export type Tags = Array<ScalarTag | CollectionTag | TagId>;
export declare const coreKnownTags: {
'tag:yaml.org,2002:binary': ScalarTag;
'tag:yaml.org,2002:merge': ScalarTag & {
identify(value: unknown): boolean;
test: RegExp;
};
'tag:yaml.org,2002:omap': CollectionTag;
'tag:yaml.org,2002:pairs': CollectionTag;
'tag:yaml.org,2002:set': CollectionTag;
'tag:yaml.org,2002:timestamp': ScalarTag & {
test: RegExp;
};
};
export declare function getTags(customTags: SchemaOptions['customTags'] | undefined, schemaName: string, addMergeTag?: boolean): (CollectionTag | ScalarTag)[];
export {};