export interface ColorPair { light: string; dark: string; } export interface RelationColorPalette { byCategory: Readonly>; byType: Readonly>; } export interface ResolveRelationColorOptions { overrides?: Partial; mode?: 'light' | 'dark'; } /** * One { light, dark } pair per category. Keeping these in glossarist-js * lets the defaults ship with the library; consumers only need to * customize when they want to deviate. */ export declare const RELATION_COLOR_DEFAULTS: RelationColorPalette; /** * Resolves the color for a relationship type. Resolution order: * 1. overrides.byType[type] * 2. RELATION_COLOR_DEFAULTS.byType[type] * 3. overrides.byCategory[category] * 4. RELATION_COLOR_DEFAULTS.byCategory[category] * 5. null (uncategorized or unrecognized type) */ export declare function resolveRelationColor(type: string, options?: ResolveRelationColorOptions): string | null; /** * Returns the { light, dark } pair for a category, merging overrides * over defaults. Useful for UIs that want to render a legend. */ export declare function categoryColorPair(categoryKey: string, overrides?: { byCategory?: Record>; }): ColorPair | null; //# sourceMappingURL=relation-colors.d.ts.map