import React, { ReactElement } from 'react'; import type { Icon } from '@primer/octicons-react'; import type { BaseProps } from '../component-helpers'; import { HeadingProps, StackProps } from '../'; type ResponsiveMap = { narrow?: T; regular?: T; wide?: T; }; export declare const BreakoutBannerBackgroundColors: readonly ["default", "subtle"]; type ResponsiveBackgroundImageSrcMap = ResponsiveMap; type BackgroundColors = (typeof BreakoutBannerBackgroundColors)[number] | AnyString; type ResponsiveBackgroundColorMap = ResponsiveMap; type ResponsiveBackgroundImagePositionMap = ResponsiveMap; type ResponsiveBackgroundImageSizeMap = ResponsiveMap; export type BreakoutBannerProps = BaseProps & React.HTMLAttributes & { children: React.ReactNode | React.ReactNode[]; /** * The alignment of the content within the banner */ align?: 'start' | 'center'; /** * Optional, custom background color */ backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap; /** * Optional, custom background image */ backgroundImageSrc?: string | ResponsiveBackgroundImageSrcMap; /** * Optional, custom background position */ backgroundImagePosition?: string | ResponsiveBackgroundImagePositionMap; /** * Optional, custom background size */ backgroundImageSize?: string | ResponsiveBackgroundImageSizeMap; /** * An optional leading visual that appears before the heading */ leadingVisual?: ReactElement | Icon; }; type BreakoutBannerHeadingProps = BaseProps & { children: React.ReactNode | React.ReactNode[]; } & HeadingProps; type BreakoutBannerDescriptionProps = BaseProps & { children: React.ReactNode | React.ReactNode[]; }; /** * Breakout banner component * {@link https://primer.style/brand/components/BreakoutBanner/ See usage examples}. */ export declare const BreakoutBanner: React.ForwardRefExoticComponent & React.RefAttributes> & { Heading: React.ForwardRefExoticComponent & React.RefAttributes>; Description: React.ForwardRefExoticComponent & React.RefAttributes>; LinkGroup: React.ForwardRefExoticComponent & React.RefAttributes, "ref"> & React.RefAttributes>; }; export {};