import { PropsWithChildren } from 'react'; import { WithStyledProps } from '@mapples/style'; import type { Gradient } from '@mapples/types'; import { ViewProps as RNViewProps } from 'react-native'; /** * Props for the GradientBackground component. * * @public */ export type GradientBackgroundProps = PropsWithChildren & { /** The linear gradient painted behind the container's children. */ gradient?: Gradient; }>; /** * A container view with a linear-gradient background. * * Mirrors `ImageBackgroundView`: it `forwardRef`s to a native `View` (via * `StyledView`) so the canvas can measure it (`measureInWindow`) and make it * selectable, paints the gradient as a full-bleed layer beneath its children, * and is sized by its own `styled.style`. Falls back to the solid * `backgroundColor` when no gradient is present or unrenderable. * * @example * ```tsx * * * * ``` * * @public */ declare const GradientBackground: import("react").ForwardRefExoticComponent<{ styled?: import("@mapples/style").StyledProps> | undefined; } & RNViewProps & { /** The linear gradient painted behind the container's children. */ gradient?: Gradient; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes>; export default GradientBackground; //# sourceMappingURL=GradientBackground.d.ts.map