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, JSX } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; /** * @module bridges * @package @geenius/adapters/react-chakra * @description Chakra UI bridge components for async adapter loading, error, * and notification surfaces. Adapter contracts stay delegated to the React * reference variant. */ type BridgeSize = "sm" | "md" | "lg"; type ToastBridgeStatus = "default" | "info" | "success" | "warning" | "error" | "loading"; type ToastBridgePlacement = "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end"; interface LoadingBridgeProps { /** 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; /** Visual density of the Chakra spinner and container. */ size?: BridgeSize; /** Content rendered when loading is explicitly false. */ children?: ReactNode; /** Optional class name passed to the Chakra wrapper. */ className?: string; } /** Renders a Chakra loading affordance for async adapter work. */ declare function LoadingBridge({ children, className, description, isLoading, label, loading, size, }: 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 Chakra fallback. */ title?: ReactNode; /** Supporting copy used by the default fallback. */ description?: ReactNode; /** Label for the default reset action. */ resetLabel?: ReactNode; /** Additional class name passed to 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 Chakra 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 { /** Optional subtree rendered inside the Chakra toaster host. */ children?: ReactNode; /** Controls whether the declarative toast should be emitted. */ open?: boolean; /** Toast title. */ title?: ReactNode; /** Toast message alias used by some adapter telemetry states. */ message?: ReactNode; /** Optional supporting toast message. */ description?: ReactNode; /** Chakra toast status. */ status?: ToastBridgeStatus; /** Alias for `status` to match the other React library variants. */ variant?: ToastBridgeStatus; /** Stable dedupe key for repeated declarative renders. */ toastKey?: string; /** Auto-dismiss timeout in milliseconds; 0 keeps the toast visible. */ duration?: number; /** Chakra toast placement. */ placement?: ToastBridgePlacement; /** Optional action label rendered by the Chakra toast. */ actionLabel?: ReactNode; /** Called when the optional action is pressed. */ onAction?: () => void; /** Called when Chakra reports that the toast is no longer visible. */ onDismiss?: () => void; /** Receives the Chakra toast id after emission. */ onShown?: (toastId: string) => void; /** Optional logger adapter that receives one structured event per visible toast. */ logger?: LoggerAdapter; /** Optional structured metadata merged into the logger event. */ meta?: LogMeta; /** Optional class name passed to the Chakra toaster host. */ className?: string; } /** Provides Chakra toast rendering and emits declarative adapter notifications. */ declare function ToastBridge({ actionLabel, children, className, description, duration, logger, message, meta, onAction, onDismiss, onShown, open, placement, status, title, toastKey, variant, }: ToastBridgeProps): JSX.Element; 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 ToastBridgePlacement, type ToastBridgeProps, type ToastBridgeStatus };