
import { BannerVariant } from "../../types/dist/index.js";
import { ReactNode } from "react";

//#region src/components/Banner/utils.d.ts
/**
 * Maps banner variants to button variants following the Figma spec.
 * Secondary banner variants map to secondary button variants.
 */
declare const BANNER_TO_BUTTON_VARIANT: Record<BannerVariant, string>;
/**
 * Checks whether a React element has a specific displayName.
 * Handles both regular function components and forwardRef components
 * (which have typeof type === 'object').
 */
declare function hasDisplayName(child: ReactNode, name: string): boolean;
/**
 * Separates Banner children into content (BannerContent) and action elements.
 * Skips falsy children so conditional patterns like {show && <Button />} work.
 */
declare function separateChildren(children: ReactNode): {
  content: ReactNode | null;
  actions: ReactNode[];
};
//#endregion
export { BANNER_TO_BUTTON_VARIANT, hasDisplayName, separateChildren };