import { Ref } from "react"; import { AccessibilityRole, GestureResponderEvent, View } from "react-native"; import { WithTestID } from "../../utils/types"; import { IOPictogramsBleed } from "../pictograms"; type BaseBannerProps = WithTestID<{ ref?: Ref; color: "neutral" | "turquoise"; pictogramName: IOPictogramsBleed; accessibilityLabel?: string; accessibilityHint?: string; }>; type BannerPropsDescOnly = { title: never; content?: string; }; type BannerPropsTitleOnly = { title?: string; content: never; }; type BannerPropsTitleAndDesc = { title?: string; content?: string; }; type RequiredBannerProps = BannerPropsDescOnly | BannerPropsTitleOnly | BannerPropsTitleAndDesc; type BannerActionProps = { action: string; onPress: (event: GestureResponderEvent) => void; accessibilityRole?: Extract; } | { action?: never; onPress?: never; accessibilityRole?: AccessibilityRole; }; type BannerCloseProps = { onClose?: (event: GestureResponderEvent) => void; labelClose?: string; } | { onClose?: never; labelClose?: never; }; export type Banner = BaseBannerProps & RequiredBannerProps & BannerActionProps & BannerCloseProps; export declare const bannerBackgroundColours: Array; export declare const Banner: ({ color, pictogramName, title, content, action, labelClose, onPress, onClose, accessibilityHint, accessibilityLabel, accessibilityRole, ref: viewRef, testID }: Banner) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Banner.d.ts.map