import React from 'react'; import type { CollectionOptions } from './connectTypes'; import { type CommonComponentProps } from './EmbeddedComponent'; /** The notification banner's current initial loading state. @experimental */ export type NotificationBannerInitialLoadState = 'loading' | 'loaded' | 'failed'; /** Notification counts emitted by the banner. @experimental */ export type NotificationBannerChange = { /** Total visible notifications. */ total: number; /** Notifications that require user action. */ actionRequired: number; }; /** An imperative snapshot of notification banner state. @experimental */ export type ConnectNotificationBannerRef = { /** The banner's current initial loading state. */ readonly initialLoadState: NotificationBannerInitialLoadState; }; /** Props for {@link ConnectNotificationBanner}. @experimental */ export type ConnectNotificationBannerProps = CommonComponentProps & { /** Controls which account requirements are collected by notification tasks. */ collectionOptions?: CollectionOptions; /** Navigation title for full-screen tasks opened from the banner. */ taskTitle?: string; /** Called when total or action-required notification counts change. */ onNotificationsChange?: (change: NotificationBannerChange) => void; /** Called when the banner publishes a new content height. */ onContentHeightChange?: (height: number) => void; /** Called immediately with `loading`, then once with `loaded` or `failed`. */ onInitialLoadStateChange?: (state: NotificationBannerInitialLoadState) => void; }; /** * An inline notification banner that sizes itself to its rendered content. * * @experimental * @category Connect */ export declare const ConnectNotificationBanner: React.ForwardRefExoticComponent void; /** Called when the banner publishes a new content height. */ onContentHeightChange?: (height: number) => void; /** Called immediately with `loading`, then once with `loaded` or `failed`. */ onInitialLoadStateChange?: (state: NotificationBannerInitialLoadState) => void; } & React.RefAttributes>; //# sourceMappingURL=NotificationBanner.d.ts.map