import { default as React, ReactNode } from 'react'; import { StatusLevel } from '../utils'; export interface AppCardProps { /** Card content */ children: ReactNode; /** Card title */ title?: string; /** Subtitle or description */ subtitle?: string; /** * Status badge with Astro UX dual-coded indicator (color + shape). * * Supports both the Astro UX `StatusLevel` and legacy variants: * - Astro UX: `{ level: 'normal' | 'standby' | 'caution' | 'serious' | 'critical' | 'off', label: '...' }` * - Legacy: `{ variant: 'success' | 'warning' | 'error' | 'info' | 'neutral', label: '...' }` */ status?: { label: string; level?: StatusLevel; /** @deprecated Use `level` (Astro UX StatusLevel) instead. Still supported for backward compatibility. */ variant?: "success" | "warning" | "error" | "info" | "neutral"; }; /** Show fullscreen button (only rendered inside ChatGPT host) */ allowFullscreen?: boolean; /** Callback when fullscreen is toggled */ onFullscreenChange?: (isFullscreen: boolean) => void; /** Additional CSS classes */ className?: string; /** Enable compact mode (reduced padding and font sizes) */ compact?: boolean; /** Header icon (ReactNode, rendered before title) */ icon?: ReactNode; /** Footer content (rendered below content with a divider) */ footer?: ReactNode; /** Actions (buttons) rendered in the header, right-aligned */ actions?: ReactNode; /** Show a loading skeleton over the content area */ loading?: boolean; /** Error state — renders an error message with a critical alert */ error?: string | Error; /** Retry callback (shown when `error` is set) */ onRetry?: () => void; /** Custom inline styles for the root container */ style?: React.CSSProperties; } /** * AppCard — enterprise-ready widget wrapper for AI host environments. * * Works with ChatGPT Apps, Anthropic MCP Apps, Google Gemini, or any MCP host. * Wrapped in an error boundary so rendering failures in child components never * crash the host application — critical for sandboxed iframes. */ export declare const AppCard: React.FC; export default AppCard;