/** * LoadingState * Higher-order component and hook for managing loading states */ import React, { type ReactNode } from 'react'; export interface LoadingStateProps { isLoading: boolean; error?: Error | null; children: ReactNode; skeleton?: ReactNode; errorFallback?: (error: Error) => ReactNode; fallback?: ReactNode; } /** * LoadingState component - conditionally renders loading, error, or content * Handles typical data loading patterns */ export declare const LoadingState: React.FC; export interface LoadingListProps { isLoading: boolean; error?: Error | null; data?: unknown[]; children: ReactNode; itemCount?: number; emptyMessage?: string; } /** * LoadingList component - handles list loading patterns * Shows skeletons while loading, error message on failure, data when ready */ export declare const LoadingList: React.FC; export interface LoadingGridProps { isLoading: boolean; error?: Error | null; data?: unknown[]; children: ReactNode; rows?: number; columns?: number; emptyMessage?: string; } /** * LoadingGrid component - handles grid/table loading patterns */ export declare const LoadingGrid: React.FC; export interface WithLoadingProps { isLoading?: boolean; error?: Error | null; } /** * withLoading HOC - wraps component with LoadingState */ export declare function withLoading

(Component: React.ComponentType

, skeleton?: ReactNode): { ({ isLoading, error, ...props }: P): import("react/jsx-runtime").JSX.Element; displayName: string; }; //# sourceMappingURL=LoadingState.d.ts.map