import { type ImageProps as RNImageProps, type ImageResizeMode, type ImageSourcePropType, type ImageStyle, type StyleProp } from "react-native"; export type ImageRadius = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full"; export interface ImageProps extends Omit { /** The image to display: a remote `{ uri }`, or a bundled asset from `require(...)`. */ source?: ImageSourcePropType; /** Fit: fit the whole image inside the box, letterboxing the spare space (pick one). */ contain?: boolean; /** Fit: fill the box, cropping any overflow. The default when no fit is set (pick one). */ cover?: boolean; /** Fit: fill the box by distorting the aspect ratio (pick one). */ stretch?: boolean; /** Fit: center at intrinsic size, scaling down only when larger than the box (pick one). */ center?: boolean; /** Fit: tile the image at its intrinsic size to fill the box (pick one). */ repeat?: boolean; /** Fit: show at intrinsic size with no scaling (pick one). */ none?: boolean; /** Width of the image box (px, or a percent string like `"100%"`). Images have no intrinsic layout size. */ width?: ImageStyle["width"]; /** Height of the image box (px, or a percent string). */ height?: ImageStyle["height"]; /** Corner radius from the kit's radius scale (pick one): none, sm, md, lg, xl, 2xl, 3xl, full. */ radius?: ImageRadius; /** Composition only (aspectRatio, layout within a parent). Size comes from `width` / `height`, rounding from `radius`. */ style?: StyleProp; /** * Accessible name for the image, the same name `alt` gives (and it wins when both are * set). * * On iOS and Android React Native makes an image its own accessibility element * * * In the app React Native makes an image its own accessibility element * * for `alt` (or `accessible`), so prefer `alt` for an image that stands on its own. */ accessibilityLabel?: string; /** * The image's alt text: a named image is announced as an image with this name on every * platform (the web's , the image role natively). With no name here or in * `accessibilityLabel` the image is decorative, and assistive tech skips it. */ alt?: string; /** E2E hook forwarded to the underlying image. */ testID?: string; } export declare function fitOf(p: ImageProps): ImageResizeMode; /** * A local or remote image with a boolean fit prop (cover, contain, stretch, center, * repeat, none). */ export declare function Image(props: ImageProps): import("react").JSX.Element; /** Whether a source states its own point size: a bundled asset (`require(...)`, whose * registry entry carries it on every platform) or a single `{ uri, width, height }`. */ export declare function declaresPointSize(source: ImageSourcePropType | undefined): source is number | { uri?: string; width: number; height: number; }; /** How many tiles of `tile` points cover `extent` points: at least the one that measures. */ export declare function tileCount(extent: number, tile: number): number; //# sourceMappingURL=image.shared.d.ts.map