import type Row from "./Row"; import type { RowData } from "./Row"; export interface LoadingStateRendererProps { parentRow?: TData; } export interface ErrorStateRendererProps { error: string; parentRow?: TData; } export interface EmptyStateRendererProps { message?: string; parentRow?: TData; } export type VanillaLoadingStateRenderer = string | HTMLElement | ((props: LoadingStateRendererProps) => HTMLElement | string); export type VanillaErrorStateRenderer = string | HTMLElement | ((props: ErrorStateRendererProps) => HTMLElement | string); export type VanillaEmptyStateRenderer = string | HTMLElement | ((props: EmptyStateRendererProps) => HTMLElement | string); export type LoadingStateRenderer = VanillaLoadingStateRenderer; export type ErrorStateRenderer = VanillaErrorStateRenderer; export type EmptyStateRenderer = VanillaEmptyStateRenderer;