mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-01 17:59:30 +08:00
16 lines
383 B
Text
16 lines
383 B
Text
import { Color } from './types.js';
|
|
|
|
/**
|
|
* String to color
|
|
*/
|
|
declare function stringToColor(value: string): Color | null;
|
|
/**
|
|
* Check if colors are identical
|
|
*/
|
|
declare function compareColors(color1: Color, color2: Color): boolean;
|
|
/**
|
|
* Convert color to string
|
|
*/
|
|
declare function colorToString(color: Color): string;
|
|
|
|
export { colorToString, compareColors, stringToColor };
|