import * as react_jsx_runtime from 'react/jsx-runtime'; import { LeoGenerationState } from '../../lib/leo-generation.js'; import '../ui/leo-icon.js'; import 'react'; /** Same lifecycle as every Leo surface. */ type LeoLoadingState = LeoGenerationState; /** One loading row in an explicit stack. */ interface LeoLoadingRowSpec { id: string; state: LeoGenerationState; /** Sub-rows in the split columns, matching a split data row. Default 1 (not split). */ splitCount?: number; label?: string; onStop?: () => void; } interface LeoLoadingRowProps { /** Columns the table is showing, in order. */ columns: ReadonlyArray<{ key: string; split?: unknown; }>; state?: LeoGenerationState; /** Varies the skeleton bars. */ index?: number; /** Show the Leo mark + label in the first data cell. Default true. */ showStatus?: boolean; /** Overrides the state's status text. */ label?: string; /** Sub-rows in the table's split columns. Default 1 (a normal row). */ splitCount?: number; /** Adds a Stop button while inited or thinking: in the status cell, or the last column when `showStatus` is off. */ onStop?: () => void; className?: string; } declare function LeoLoadingRow({ columns, state, index, showStatus, label, splitCount, onStop, className, }: LeoLoadingRowProps): react_jsx_runtime.JSX.Element; /** * What `DataTable leoLoading` accepts. Either a simple stack (`count`, one * `state`) or an explicit `rows` list for parent + children. */ interface LeoLoadingConfig { count?: number; label?: string; state?: LeoGenerationState; /** Stop button on the lead row of a simple stack. */ onStop?: () => void; /** Sub-rows in the split columns, for loading a split row. */ splitCount?: number; /** Explicit stack. Wins over `count` / `state`. */ rows?: LeoLoadingRowSpec[]; } declare function LeoLoadingRows({ config, columns, }: { config: LeoLoadingConfig | true; columns: ReadonlyArray<{ key: string; split?: unknown; }>; }): react_jsx_runtime.JSX.Element; export { type LeoLoadingConfig, LeoLoadingRow, type LeoLoadingRowProps, type LeoLoadingRowSpec, LeoLoadingRows, type LeoLoadingState };