import { PropsWithChildren } from 'react'; import { StyledProp, StyledProps, WithStyledProps } from '@mapples/style'; import { ImageProps as ExpoImageProps } from 'expo-image'; import { ImageStyle, ViewProps, ViewStyle } from 'react-native'; /** * Props for the ImageBackgroundView component. * * Combines Expo Image props with an extended `styled` object that controls the * outer container, the background image, and the overlaid content view * independently. Accepts an optional `dataSource` string that takes precedence * over the standard `source` prop when provided. * * @public */ export type ImageProps = PropsWithChildren, 'styled'> & { styled?: StyledProps & { /** Style applied to the absolutely-positioned background image */ styleImage?: StyledProp; /** Style applied to the view rendered on top of the background image; it fills the container (`flexGrow: 1`) */ styleContent?: StyledProp; }; /** URI string that overrides `source` when present */ dataSource?: string; }>; /** * A container view with an absolutely-positioned background image. * * `ImageBackgroundView` renders a full-bleed background image (via Expo Image) * beneath an overlay content view. Children are placed inside the content * view and are rendered on top of the image. Pass `dataSource` (a URI string) * to override the standard `source` prop at runtime. * * @example * ```tsx * * * * ``` * * @public */ declare const ImageBackgroundView: import("react").ForwardRefExoticComponent, "styled"> & { styled?: StyledProps & { /** Style applied to the absolutely-positioned background image */ styleImage?: StyledProp; /** Style applied to the view rendered on top of the background image; it fills the container (`flexGrow: 1`) */ styleContent?: StyledProp; }; /** URI string that overrides `source` when present */ dataSource?: string; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes>; export default ImageBackgroundView; //# sourceMappingURL=ImageBackgroundView.d.ts.map