/** * [WHO]: Public exports from this file (see implementation below). * [FROM]: See the import block immediately after this header. * [TO]: sparkdesign package consumers; output of CLI `add` when applicable. * [HERE]: registry/basic/sonner.tsx — Spark Design source; keep aligned with the main library. * * [PROTOCOL]: * 1. Keep this P3 header in sync when the public contract changes. * 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change. * 3. Follow design tokens and explicit type exports. */ import * as React from 'react'; import type { ToasterProps as SonnerToasterProps } from 'sonner'; export { toast } from 'sonner'; export type ToasterProps = Omit & { theme?: 'light' | 'dark'; /** 可选:Portal 根节点 data-style,主库可传入 useThemeStyle 的值 */ dataStyle?: string; /** 可选:Portal 根节点 data-theme,主库可传入 useThemeStyle 的值 */ dataTheme?: string; }; export declare function Toaster({ theme, toastOptions, dataStyle, dataTheme, icons, gap, visibleToasts, offset, ...props }: ToasterProps): React.ReactPortal | null; export declare namespace Toaster { var displayName: string; }