import { type NotifierManagerProps } from './NotifierManager'; import { Notifier, NotifierConfig, NotifierData, RenderNotifier } from './typings'; export interface CreateNotifierProps extends NotifierConfig { /** * Customizable config for notifier. The given values should be retrivable from your notification carrier. */ config?: C; /** * The render props for notification carrier(UI component). */ render: RenderNotifier; /** * The method to set attributes or listeners to root. */ setRoot?: (root: HTMLDivElement) => void; /** * Custom wrapper for rendered notifiers (e.g. AlertBanner group container). */ renderContainer?: NotifierManagerProps['renderContainer']; /** * Sorting hook to enforce display/queue ordering before updates. */ sortBeforeUpdate?: NotifierManagerProps['sortBeforeUpdate']; } /** * The utility factory for `mezzanine` to create a notifier. * * When APIs are called, Notifier will dynamically render a new react instance by `ReactDOM.render` method. */ export declare function createNotifier(props: CreateNotifierProps): Notifier;