import * as React from 'react'; export interface LoadStateLabels { /** Screen-reader text announced while loading. */ loading?: string; title?: string; hint?: string; retry?: string; } export interface LoadStateProps { /** A request is in flight. */ loading: boolean; /** The request failed (truthy = show the error state). */ error?: unknown; /** Loading longer than this is treated as a failure. Default 15s; `0` disables. */ timeoutMs?: number; /** Retry handler. Without it the error state renders no button. */ onRetry?: () => void; /** Placeholder shown while loading (usually a skeleton). */ skeleton: React.ReactNode; /** Overrides for the i18n defaults (`loadState.*`). */ labels?: LoadStateLabels; /** `inline` = compact, for sidebars / small panels. */ size?: 'default' | 'inline'; className?: string; children?: React.ReactNode; } /** * Loading → error → content switch with a timeout guard. While `loading` it * renders `skeleton` inside a polite live region (`aria-busy`); if the request * errors or never resolves it renders an alert with a retry button instead of * an eternal skeleton. Strings come from i18n (`loadState.*`, es/en) and can be * overridden per call through `labels`. */ export declare function LoadState({ loading, error, timeoutMs, onRetry, skeleton, labels, size, className, children, }: LoadStateProps): React.JSX.Element; //# sourceMappingURL=load-state.d.ts.map