import { AdapterDetailPageProps, AdaptersPageProps } from '@geenius/adapters/solidjs'; export * from '@geenius/adapters/solidjs'; export { AdapterDetailPageProps, AdaptersPageProps } from '@geenius/adapters/solidjs'; import { LogMeta, LoggerAdapter, AdapterDomain, AdapterStatusInfo, DomainAdapterConfig, AdapterStatusType } from '@geenius/adapters'; import { JSX } from 'solid-js'; /** * @module bridges * @package @geenius/adapters/solidjs-solidui * @description SolidUI-flavoured bridge components for adapter loading, * error, and toast states. The core adapter provider and primitives are * re-exported from the SolidJS reference package; this module only adds the * library-variant UI affordances required by the adapter contract. */ type BridgeTone = "info" | "success" | "warning" | "error"; /** * Props accepted by the SolidUI loading bridge. * * @property loading Whether the bridge should render its loading indicator. * @property label Accessible loading label and visible title. * @property description Optional supporting text for longer async operations. * @property fullScreen Whether the indicator should fill the viewport. * @property class Optional class merged into the bridge wrapper. * @property children Content rendered when `loading` is false. */ interface LoadingBridgeProps { loading?: boolean; label?: string; description?: string; fullScreen?: boolean; class?: string; children?: JSX.Element; } /** * Renders a SolidUI-style loading surface for async adapter work. * * @param props Loading bridge props. * @returns A token-friendly loading indicator or the supplied children. */ declare function LoadingBridge(props: LoadingBridgeProps): JSX.Element; /** * Props accepted by the SolidUI error boundary bridge. * * @property error Explicit async adapter error to render. * @property title Heading shown above the error details. * @property class Optional class merged into the error surface. * @property resetLabel Label for the reset button. * @property onError Callback invoked when a descendant render error is caught. * @property onReset Callback invoked by the reset button. * @property children Content protected by the SolidJS error boundary. */ interface ErrorBoundaryBridgeProps { error?: unknown; title?: string; class?: string; resetLabel?: string; onError?: (error: unknown) => void; onReset?: () => void; children?: JSX.Element; } /** * Wraps SolidJS's native error boundary with an adapter-specific SolidUI * fallback. Passing an explicit `error` renders the same fallback for async * adapter failures that happen outside render. * * @param props Error bridge props. * @returns Protected children or an adapter error panel. */ declare function ErrorBoundaryBridge(props: ErrorBoundaryBridgeProps): JSX.Element; /** * A single toast notification rendered by the SolidUI toast bridge. */ interface ToastBridgeMessage { id: string; title: string; description?: string; tone?: BridgeTone; duration?: number; action?: { label: string; onClick: () => void; }; meta?: LogMeta; } type ToastBridgePlacement = "bottom-left" | "bottom-right" | "top-left" | "top-right"; /** * Props accepted by the SolidUI toast bridge. * * @property toasts Toast messages to render. * @property placement Fixed viewport placement for the toast stack. * @property class Optional class merged into the toast stack. * @property logger Optional logger adapter that receives one event per toast id. * @property onDismiss Callback fired when a toast is dismissed or expires. */ interface ToastBridgeProps { toasts: readonly ToastBridgeMessage[]; placement?: ToastBridgePlacement; class?: string; logger?: LoggerAdapter; onDismiss?: (id: string) => void; } /** * Renders a SolidUI-style toast stack and optionally mirrors toast events to * the configured logger adapter. * * @param props Toast bridge props. * @returns A fixed toast region. */ declare function ToastBridge(props: ToastBridgeProps): JSX.Element; /** * @module AdapterCard * @package @geenius/adapters/solidjs-solidui * @description Renders the SolidUI adapter summary card for the SolidJS * SolidUI variant. The card surfaces provider status, latency, and domain * metadata for one adapter domain in dashboard views. */ /** * Props for rendering a single adapter summary card in the SolidUI dashboard grid. * * @property domain Adapter domain represented by the card. * @property status Current provider health and metadata for the domain. * @property onClick Optional callback fired when the card is activated. * @property class Optional class name merged into the card container. */ interface AdapterCardProps { domain: AdapterDomain; status: AdapterStatusInfo; onClick?: () => void; class?: string; } /** * Renders a clickable SolidUI summary card for one adapter domain. * * @param props Card props including the adapter domain, status payload, and click handler. * @returns An interactive button when selection is enabled, otherwise a static summary card. */ declare function AdapterCard(props: AdapterCardProps): JSX.Element; /** * @module AdapterConfigForm * @package @geenius/adapters/solidjs-solidui * @description Renders the SolidUI adapter configuration form for the SolidJS * SolidUI variant. It provides provider selection and credential inputs while * delegating persistence to the host application. */ /** * Props accepted by the SolidUI adapter configuration form. * * @property domain Adapter domain being configured in the current dialog * @property initialConfig Existing configuration values used to hydrate the form * @property onSave Async or sync handler that persists the submitted configuration * @property onCancel Optional callback invoked when the user dismisses the form * @property class Optional class merged onto the form root * @property titleId Optional identifier applied to the form title for dialog labelling */ interface AdapterConfigFormProps { domain: AdapterDomain; initialConfig?: DomainAdapterConfig; onSave: (config: DomainAdapterConfig) => Promise | void; onCancel?: () => void; class?: string; titleId?: string; } /** * Renders the adapter configuration workflow for a single adapter domain. * * @param props Component props controlling the selected domain and form callbacks * @returns A provider chooser and credential form styled with SolidUI tokens */ declare function AdapterConfigForm(props: AdapterConfigFormProps): JSX.Element; /** * @module AdapterList * @package @geenius/adapters/solidjs-solidui * @description Renders the searchable SolidUI adapter grid for the SolidJS * SolidUI variant. The list consumes provider status from context and delegates * selection events to the hosting page or dashboard shell. */ /** * Props for rendering the SolidUI adapter list and optional status filter controls. * * @property onSelect Optional callback invoked when a domain card is selected. * @property filterStatus Optional status filter applied before rendering the grid. * @property class Optional class name merged into the outer wrapper. */ interface AdapterListProps { onSelect?: (domain: AdapterDomain) => void; filterStatus?: AdapterStatusType; class?: string; } /** * Renders the searchable SolidUI adapter list backed by shared provider state. * * @param props List props including selection callback, status filtering, and wrapper class names. * @returns The adapter grid or an empty state when no entries are available. */ declare function AdapterList(props: AdapterListProps): JSX.Element; /** * @module AdapterStatusBadge * @package @geenius/adapters/solidjs-solidui * @description Renders the SolidUI adapter status badge for the SolidJS * SolidUI variant. The badge keeps the shared adapter status vocabulary while * exposing token-friendly SolidUI classes. */ /** * Props for rendering the SolidUI adapter status badge. * * @property status Shared adapter status vocabulary value to display. * @property showLabel Whether the human-readable label should be rendered. * @property size Visual size variant for the badge and status dot. * @property class Optional class name merged into the badge wrapper. */ interface AdapterStatusBadgeProps { status: AdapterStatusType; showLabel?: boolean; size?: "sm" | "md"; class?: string; } /** * Renders a compact SolidUI badge for the current adapter lifecycle state. * * @param props Badge props including the status token, optional label visibility, and size variant. * @returns A styled badge element that mirrors the shared adapter status taxonomy. */ declare function AdapterStatusBadge(props: AdapterStatusBadgeProps): JSX.Element; /** * @module pages * @package @geenius/adapters/solidjs-solidui * @description Public SolidUI page wrappers for the SolidJS adapter reference * surface. */ declare function AdapterDetailPage(props: AdapterDetailPageProps): JSX.Element; declare function AdaptersPage(props: AdaptersPageProps): JSX.Element; export { AdapterCard, type AdapterCardProps, AdapterConfigForm, type AdapterConfigFormProps, AdapterDetailPage, AdapterList, type AdapterListProps, AdapterStatusBadge, type AdapterStatusBadgeProps, AdaptersPage, ErrorBoundaryBridge, type ErrorBoundaryBridgeProps, LoadingBridge, type LoadingBridgeProps, ToastBridge, type ToastBridgeMessage, type ToastBridgePlacement, type ToastBridgeProps };