/** * 模板选择器组件 * * @module RegexEditor/templates/TemplateSelector * @description 提供模板选择、搜索、分类筛选等功能的UI组件 */ import React from 'react'; import type { RegexTemplate } from './types'; /** * 模板选择器组件属性 */ export interface TemplateSelectorProps { /** 可用的模板列表 */ templates: RegexTemplate[]; /** 选择模板的回调 */ onSelect: (template: RegexTemplate) => void; /** 当前选中的模板ID */ selectedId?: string; /** 是否显示自定义模板 */ showCustom?: boolean; /** 自定义样式类名 */ className?: string; } /** * 模板选择器组件 * * @example * ```tsx * setPattern(template.pattern)} * selectedId={currentTemplateId} * /> * ``` */ export declare const TemplateSelector: React.FC;