/** AI 에이전트용 컴포넌트 메타데이터 타입 */ /** * 컴포넌트 카테고리 — `src/components/` 하위 디렉토리명과 동일. * 타입과 런타임 값을 한 곳에서 정의해 추가/변경 시 동기화 누락을 막는다. */ export declare const COMPONENT_CATEGORIES: readonly ["action", "data-display", "feedback-and-status", "forms-and-input", "image-and-icons", "layout", "navigation", "overlays"]; export type ComponentCategory = (typeof COMPONENT_CATEGORIES)[number]; export interface ComponentMeta { category: ComponentCategory; aliases: string[]; hasChildren: boolean; description: string; whenToUse: string[]; forbiddenRules: string[]; seeAlso: string[]; jsRequired: boolean; /** Props가 확장하는 HTML 요소 — 에이전트가 표준 HTML 속성 사용 가능 여부를 판단 */ htmlElement?: string; /** * render_to_html에 전달할 실제 사용 예시 props. * * 작성 규칙 (props-type-guide.md § usageExamples 참조): * - key: 시나리오 이름 (예: "default", "withIcon", "rangePicker") * - value: render_to_html의 props 파라미터에 그대로 전달 가능한 객체 * - 모든 required prop 포함 필수. optional은 시나리오에 필요한 것만. * - 에이전트가 복사해서 바로 사용할 수 있는 수준의 실제 데이터. * - 빈 문자열(""), 빈 객체({}) 금지. 의미 있는 값을 넣을 것. */ usageExamples?: Record>; }