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

21 lines
686 B
Plaintext

import { TypeBoxError } from '../error/index';
export declare class TemplateLiteralParserError extends TypeBoxError {
}
export type Expression = ExpressionAnd | ExpressionOr | ExpressionConst;
export type ExpressionConst = {
type: 'const';
const: string;
};
export type ExpressionAnd = {
type: 'and';
expr: Expression[];
};
export type ExpressionOr = {
type: 'or';
expr: Expression[];
};
/** Parses a pattern and returns an expression tree */
export declare function TemplateLiteralParse(pattern: string): Expression;
/** Parses a pattern and strips forward and trailing ^ and $ */
export declare function TemplateLiteralParseExact(pattern: string): Expression;