import React from 'react'; import { type FlexAllProps, type FlexComponentProps } from 'reflexy/styled'; import type { TransitionComponent } from '../TransitionFlex'; import type { GetOverridedKeys } from '../types/local'; import { type NotificationBarProps } from './NotificationBar'; export interface NotificationPositions { } export type NotificationPosition = GetOverridedKeys<'static' | 'sticky-top' | 'sticky-bottom' | 'top' | 'bottom' | 'left-top' | 'left-middle' | 'left-bottom' | 'right-top' | 'right-middle' | 'right-bottom' | 'window-top' | 'window-bottom', NotificationPositions>; export interface Notification extends RequiredSome, 'id' | 'variant' | 'contentProps' | 'actionProps'>, 'variant'> { readonly content: TContent; readonly position?: NotificationPosition | undefined; readonly noAction?: boolean | undefined; readonly rootProps?: OmitStrict, 'id' | 'variant' | 'contentProps' | 'actionProps'> | undefined; readonly timeout?: number | undefined; } export type NotificationsProps> = FlexAllProps & { readonly list: readonly N[]; readonly defaultPosition?: NotificationPosition | undefined; readonly defaultAction?: NotificationBarProps ? TID : string | number>['action'] | undefined; readonly onAction?: NotificationBarProps ? TID : string | number>['onAction'] | undefined; readonly onTimeout?: ((id: N extends Notification ? TID : string | number) => void) | undefined; readonly containerProps?: FlexComponentProps<'div', { omitProps: true; }> | undefined; readonly listProps?: FlexComponentProps<'div', { omitProps: true; }> | undefined; readonly disableTransition?: boolean; }; declare const _default: React.MemoExoticComponent<( = Notification>({ list, defaultPosition, defaultAction, onAction, onTimeout, listProps, disableTransition, ...rest }: NotificationsProps) => React.JSX.Element | null)>; export default _default;