import type { Gradient } from '@mapples/types'; /** * Props for {@link GradientLayer}. * * @public */ export interface GradientLayerProps { /** The gradient payload from a node's `props.gradient`. */ gradient?: Gradient; /** * Corner radius to clip the gradient layer to, matching the host container's * `borderRadius`. Optional — when omitted, the host must set * `overflow: 'hidden'` for the gradient to respect rounded corners. */ borderRadius?: number; } /** * Renders a gradient as an absolutely-positioned fill layer that a * container paints behind its children. This is an **internal layer**, not a * standalone canvas component — it has no ref and no intrinsic size. Containers * (`View`, `GradientBackground`) mount it as their first child. * * React Native has no native gradient style, so a gradient travels as data on * `props.gradient` (see `@mapples/types`' `Gradient`) and is painted here: a * linear one by `expo-linear-gradient`, a radial or conic one with * `react-native-svg`. * The layer is `pointerEvents="none"` so it never intercepts touches. * * Degrades to `null` (the container keeps its solid `backgroundColor`) when: * - no gradient is supplied, * - the gradient is linear and `expo-linear-gradient` isn't installed, * - the gradient has fewer than two stops (RN requires ≥2 colors). * * @public */ declare const GradientLayer: { ({ gradient, borderRadius }: GradientLayerProps): import("react").JSX.Element | null; displayName: string; }; export default GradientLayer; //# sourceMappingURL=GradientLayer.d.ts.map