import { SvelteComponent } from "svelte"; /** * A notification inbox component that displays a list of notifications for the current user. * * Supports pagination, read/unread states, and customizable rendering of notification items. * Can be embedded directly in a page or used in combination with floating UIs using FloatingInbox. * * @event { notification: Notification } mb-notification-click - Emitted when a notification item is clicked. Call event.preventDefault() to stop default navigation. **/ type Props = { /** * Passed through by a parent component when rendering the FloatingInbox * @internal * @default false */ floating?: boolean; /** * Set the height of the inbox. * @default 400 */ height?: number; /** * Estimated item height. It gets measured after mount, but it helps to estimate * this to limit layout shift. * @default 50 */ itemHeight?: number; /** * Component to use as Notification Item. The component receives two props; * `index: number` and `data: Notification`. * @type {Component} */ ItemComponent?: any; /** * Called when a notification item is clicked. * Call `event.preventDefault()` to prevent the default behavior. */ onNotificationClick?: (event: Event, detail: { notification: Notification; }) => void; }; import type { Notification } from "magicbell-js/user-client"; declare const __propDef: { props: { height?: Props["height"]; itemHeight?: Props["itemHeight"]; floating?: Props["floating"]; ItemComponent?: Props["ItemComponent"]; onNotificationClick?: Props["onNotificationClick"]; }; events: { [evt: string]: CustomEvent; }; slots: {}; exports?: {} | undefined; bindings?: string | undefined; }; export type InboxProps = typeof __propDef.props; export type InboxEvents = typeof __propDef.events; export type InboxSlots = typeof __propDef.slots; export default class Inbox extends SvelteComponent { } export {};