UNPKG

ai-palette

Version:

AI-powered color palette generator for React applications

23 lines (22 loc) 794 B
import React from "react"; export interface PaletteConfig { apiKey?: string; maxColors?: number; defaultFormat?: "hex" | "rgb" | "hsl"; defaultHarmony?: "analogous" | "complementary" | "triadic" | "tetradic" | "monochromatic"; cacheEnabled?: boolean; cacheDuration?: number; errorHandler?: (error: Error) => void; onGenerate?: (palette: any) => void; } interface PaletteContextType { config: PaletteConfig; } declare const PaletteContext: React.Context<PaletteContextType>; export interface PaletteProviderProps { config?: PaletteConfig; children: React.ReactNode; } export declare const PaletteProvider: React.FC<PaletteProviderProps>; export declare const usePaletteConfig: () => PaletteConfig; export default PaletteContext;