export type RGB = [ number , number , number ] ; export interface ColorAdjustmentsServiceProvider { shade ( percentage ) : ( color : string ) => string ; desaturate ( amount ) : ( color : string ) => string ; } export interface ColorConvertionServiceProvider { hexToRgb ( color ) : number [ ] ; rgbToHex ( color ) : string ; } export type TerminalConvertionServiceProvider = { terminalConvertion : TermColors ; } ; export type ColorsServiceProvider = ColorAdjustmentsServiceProvider & ColorConvertionServiceProvider & TerminalConvertionServiceProvider ;