import { GpuShaderDefinition } from '../../gpu/porters'; import { transformColor, transformPosition } from '../../utilities/transformations'; import { ColorStop } from '../../utilities/colorStops'; export type { ColorStop }; export interface ComponentProps { /** * Color at the center of the diamond * * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`). * @default "#4ffb4a" */ colorA: Parameters[0]; /** * Color at the outer edges of the diamond * * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`). * @default "#4f1238" */ colorB: Parameters[0]; stops: ColorStop[] | null; /** * Center point of the diamond * * Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`. * @default {"x":0.5,"y":0.5} */ center: Parameters[0]; /** * Extent of the gradient — controls how far Color A reaches before transitioning to Color B * * @default 0.7 */ size: number; /** * Rotation in degrees — tilts the diamond into a rhombus * * @default 0 */ rotation: number; /** * Number of times the gradient repeats outward. Values above 1 create concentric diamond or square bands. * * @default 1 */ repeat: number; /** * Morphs from a sharp diamond (0) to a square (1) * * @default 0 */ roundness: number; /** * Color space for color interpolation * * Accepts one of the predefined option values. * @default "linear" */ colorSpace: string; } export declare const componentDefinition: GpuShaderDefinition; export default componentDefinition; //# sourceMappingURL=index.d.ts.map