/** * Generates a random color string in the specified format. * * @param {string} type - The format of the color string to generate. * One of "hex", "hex8", "rgb", "rgba", "hsl", or "hsla". Defaults to "hex". * @returns {string} A random color string in the specified format. * @throws {Error} If the `type` parameter is not one of the supported types. * * @example * randomColor("hex") // "#FF0000" * randomColor("hex8") // "#FF000080" * randomColor("rgb") // "rgb(255, 0, 0)" * randomColor("rgba") // "rgba(255, 0, 0, 0.5)" * randomColor("hsl") // "hsl(0, 100%, 50%)" * randomColor("hsla") // "hsla(0, 100%, 50%, 0.5)" */ export declare function randomColor(type?: "hex" | "hex8" | "rgb" | "rgba" | "hsl" | "hsla"): string;