/** * Constants for the Green Design System MCP Server */ /** * Server configuration constants */ export declare const SERVER_CONFIG: { /** Server name used in MCP protocol */ readonly SERVER_NAME: "green-design-system"; /** Fallback version if package.json cannot be read */ readonly DEFAULT_VERSION: "0.0.0"; }; /** * Search configuration constants */ export declare const SEARCH_CONFIG: { /** Maximum length for regex patterns to prevent ReDoS attacks */ readonly MAX_REGEX_LENGTH: 100; /** Default maximum number of search results to return */ readonly DEFAULT_MAX_RESULTS: 20; /** Minimum query length required for search */ readonly MIN_QUERY_LENGTH: 1; }; /** * Search result tier priorities (lower number = better match) * Used to rank search results by relevance */ export declare const SEARCH_TIERS: { /** Exact match with tag name (e.g., "gds-button" matches "gds-button") */ readonly EXACT_MATCH: 1; /** Tag name starts with search term (e.g., "button" matches "gds-button-group") */ readonly STARTS_WITH: 2; /** Tag name contains search term (e.g., "button" matches "gds-radio-button") */ readonly TAG_CONTAINS: 3; /** Name or className contains search term */ readonly NAME_CONTAINS: 4; /** Description contains search term */ readonly DESCRIPTION_CONTAINS: 5; }; /** * File and path constants */ export declare const PATHS: { /** Name of the root instructions file */ readonly INSTRUCTIONS_FILE: "INSTRUCTIONS.md"; /** Components index file name */ readonly COMPONENTS_INDEX: "components.json"; /** Icons index file name */ readonly ICONS_INDEX: "icons.json"; /** Global index file name */ readonly GLOBAL_INDEX: "index.json"; /** Tokens index file name */ readonly TOKENS_INDEX: "tokens.json"; /** Package.json file name */ readonly PACKAGE_JSON: "package.json"; }; /** * URI scheme for Green resources */ export declare const URI_SCHEME: { /** Protocol scheme for Green resources */ readonly SCHEME: "green://"; /** Instructions resource URI */ readonly INSTRUCTIONS: "green://instructions"; }; /** * Component prefixes */ export declare const PREFIXES: { /** Standard component prefix */ readonly COMPONENT: "gds-"; /** Icon component prefix */ readonly ICON: "gds-icon-"; }; /** * Framework types */ export declare const FRAMEWORKS: readonly ["angular", "react", "web-component"]; /** * Category types */ export declare const CATEGORIES: readonly ["component", "icon", "all"]; /** * Guide categories */ export declare const GUIDE_CATEGORIES: readonly ["framework-setup", "getting-started", "concepts", "troubleshooting", "migration", "all"]; /** * Token categories */ export declare const TOKEN_CATEGORIES: readonly ["space", "radius", "color", "typography", "viewport", "shadow", "motion", "all"]; /** * Color subcategories */ export declare const COLOR_SUBCATEGORIES: readonly ["background", "border", "content", "state", "all"]; /** * Documentation types available for components */ export declare const DOC_TYPES: { /** Web Component API documentation */ readonly API: "api"; /** Angular-specific documentation */ readonly ANGULAR: "angular"; /** React-specific documentation */ readonly REACT: "react"; /** UX and design guidelines */ readonly GUIDELINES: "guidelines"; /** Agent-specific usage instructions */ readonly INSTRUCTIONS: "instructions"; };