import { AdapterCardProps, AdapterConfigFormProps, AdapterListProps, AdapterStatusBadgeProps, AdapterDetailPageProps, AdaptersPageProps } from '@geenius/adapters/react'; export * from '@geenius/adapters/react'; export { AdapterCardProps, AdapterConfigFormProps, AdapterDetailPageProps, AdapterListProps, AdapterStatusBadgeProps, AdaptersPageProps } from '@geenius/adapters/react'; import { LoggerAdapter, LogMeta } from '@geenius/adapters'; import { Component, ReactNode, ErrorInfo, HTMLAttributes, JSX } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; /** * @module bridges * @package @geenius/adapters/react-daisyui * @description daisyUI class-based bridge components for async adapter * loading, error, and notification surfaces. Adapter contracts stay delegated * to the React reference variant. */ type BridgeSize = "xs" | "sm" | "md" | "lg"; type ToastBridgeTone = "default" | "info" | "success" | "warning" | "error"; type ToastBridgePlacement = "start" | "center" | "end"; interface LoadingBridgeProps extends HTMLAttributes { /** Controls whether the loading affordance renders. Defaults to true. */ loading?: boolean; /** Alias for `loading` used by async adapter state objects. */ isLoading?: boolean; /** Main loading label announced to assistive technology. */ label?: ReactNode; /** Optional supporting copy rendered below the label. */ description?: ReactNode; /** Optional determinate progress value from 0 through 100. */ progress?: number; /** Visual density of the daisyUI loading spinner. */ size?: BridgeSize; /** Content rendered when loading is explicitly false. */ children?: ReactNode; } /** Renders a daisyUI loading affordance for async adapter work. */ declare function LoadingBridge({ children, className, description, isLoading, label, loading, progress, size, ...props }: LoadingBridgeProps): JSX.Element; type ErrorBoundaryFallback = ReactNode | ((error: Error, reset: () => void) => ReactNode); interface ErrorBoundaryBridgeProps { /** React subtree protected by the boundary. */ children?: ReactNode; /** Optional controlled async adapter error. */ error?: unknown; /** Optional custom fallback node or renderer. */ fallback?: ErrorBoundaryFallback; /** Heading used by the default daisyUI fallback. */ title?: ReactNode; /** Supporting copy used by the default fallback. */ description?: ReactNode; /** Label for the default reset action. */ resetLabel?: ReactNode; /** Additional class names for the default alert. */ className?: string; /** Called when a descendant throws. */ onError?: (error: Error, errorInfo: ErrorInfo) => void; /** Called before local error state is reset. */ onReset?: () => void; } interface ErrorBoundaryBridgeState { caughtError: Error | null; } /** Catches React render failures and displays a daisyUI adapter error state. */ declare class ErrorBoundaryBridge extends Component { state: ErrorBoundaryBridgeState; static getDerivedStateFromError(error: Error): ErrorBoundaryBridgeState; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; private reset; render(): ReactNode; } interface ToastBridgeProps extends Omit, "title"> { /** Controls whether the toast is currently visible. */ open?: boolean; /** Visual treatment matching daisyUI alert tones. */ variant?: ToastBridgeTone; /** Alias for `variant` for libraries that call this value status. */ status?: ToastBridgeTone; /** Toast title. */ title?: ReactNode; /** Toast message, rendered after the title. */ message?: ReactNode; /** Optional supporting message. */ description?: ReactNode; /** Optional action label rendered as a daisyUI button. */ actionLabel?: ReactNode; /** Called when the optional action is pressed. */ onAction?: () => void; /** Called when the dismiss button is pressed or auto-dismiss fires. */ onDismiss?: () => void; /** Auto-dismiss timeout in milliseconds; 0 disables auto-dismiss. */ duration?: number; /** Toast placement on the horizontal axis. */ placement?: ToastBridgePlacement; /** Optional logger adapter that receives one structured event per visible toast. */ logger?: LoggerAdapter; /** Optional structured metadata merged into the logger event. */ meta?: LogMeta; /** Optional subtree rendered next to the declarative toast bridge. */ children?: ReactNode; } /** Renders daisyUI toast notifications for adapter telemetry. */ declare function ToastBridge({ actionLabel, children, className, description, duration, logger, message, meta, onAction, onDismiss, open, placement, status, title, variant, ...props }: ToastBridgeProps): JSX.Element | null; declare function AdapterCard(props: AdapterCardProps): react_jsx_runtime.JSX.Element; declare function AdapterConfigForm(props: AdapterConfigFormProps): react_jsx_runtime.JSX.Element; declare function AdapterList(props: AdapterListProps): react_jsx_runtime.JSX.Element; declare function AdapterStatusBadge(props: AdapterStatusBadgeProps): react_jsx_runtime.JSX.Element; declare function AdapterDetailPage(props: AdapterDetailPageProps): react_jsx_runtime.JSX.Element; declare function AdaptersPage(props: AdaptersPageProps): react_jsx_runtime.JSX.Element; export { AdapterCard, AdapterConfigForm, AdapterDetailPage, AdapterList, AdapterStatusBadge, AdaptersPage, ErrorBoundaryBridge, type ErrorBoundaryBridgeProps, LoadingBridge, type LoadingBridgeProps, ToastBridge, type ToastBridgeProps };