/** * 内置正则表达式模板库 * * @module RegexEditor/templates/builtinTemplates * @description 提供20+个精心设计的内置正则表达式模板,覆盖常见业务场景 */ import { RegexTemplate, TemplateCategory } from './types'; /** * 内置模板库 * * @description * 包含以下分类: * - 业务相关: 批次号、订单号、产品编码等 * - 通用模式: 邮箱、电话、URL、IP地址等 * - 日期时间: 各种日期时间格式 * - 数字格式: 整数、小数、货币等 * - 文本格式: 中文、英文、Unicode等 * - 数据验证: 长度、范围、格式验证 */ export declare const BUILTIN_TEMPLATES: RegexTemplate[]; /** * 获取所有内置模板 */ export declare const getAllBuiltinTemplates: () => RegexTemplate[]; /** * 按分类获取模板 */ export declare const getTemplatesByCategory: (category: TemplateCategory) => RegexTemplate[]; /** * 按ID获取模板 */ export declare const getTemplateById: (id: string) => RegexTemplate | undefined; /** * 搜索模板(按名称、描述、标签) */ export declare const searchTemplates: (keyword: string) => RegexTemplate[];