/** * Categories Store for FlowDrop (Svelte 5 Runes) * * Manages category definitions with merged defaults and API-provided overrides. * Exposes lookup helpers for icon, color, and label resolution. */ import type { CategoryDefinition, NodeCategory } from '../types/index.js'; /** * Get all category definitions, sorted by weight. */ export declare function getCategories(): CategoryDefinition[]; /** * Initialize categories with API data, merging with defaults. * API categories override defaults by name; custom categories are appended. */ export declare function initializeCategories(apiCategories: CategoryDefinition[]): void; /** * Get the display label for a category. */ export declare function getCategoryLabel(category: NodeCategory): string; /** * Get the icon for a category. */ export declare function getCategoryIcon(category: NodeCategory): string; /** * Get the color token for a category. */ export declare function getCategoryColor(category: NodeCategory): string; /** * Get the full category definition, or undefined if not found. */ export declare function getCategoryDefinition(category: NodeCategory): CategoryDefinition | undefined;