import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import { LeoGenerationState } from '../../lib/leo-generation.js'; import './leo-icon.js'; /** * Stop action for an in-flight generation. Render only while `inited` or * `thinking` — a completed generation has nothing left to stop. */ declare function LeoStopButton({ onStop, label, className, }: { onStop: () => void; /** Accessible name and tooltip. */ label?: string; className?: string; }): react_jsx_runtime.JSX.Element; interface LeoGenerationStatusProps { /** Shows a Stop button while inited or thinking. */ onStop?: () => void; state: LeoGenerationState; label?: string; className?: string; } /** The status line: Leo mark (+ check when done) and a label. Reused by rows. */ declare function LeoGenerationStatus({ state, label, onStop, className }: LeoGenerationStatusProps): react_jsx_runtime.JSX.Element; interface LeoGenerationSurfaceProps { state?: LeoGenerationState | null; /** Adds a Stop button to the status bar while inited or thinking. */ onStop?: () => void; /** Overrides the state's status text. */ label?: string; /** What `thinking` shows in place of the content. Defaults to generic bars. */ skeleton?: React.ReactNode; className?: string; children?: React.ReactNode; } declare function LeoGenerationSurface({ state, label, onStop, skeleton, className, children }: LeoGenerationSurfaceProps): react_jsx_runtime.JSX.Element; interface LeoGenerationScopeValue { state: LeoGenerationState | null; onStop?: () => void; } /** * Read the nearest section's generation state. A child (table, chart, list) * calls this to know its parent is mid-run without being wired by hand. */ declare function useLeoGenerationScope(): LeoGenerationScopeValue | null; interface LeoGenerationSectionProps { title: React.ReactNode; description?: React.ReactNode; /** The section's own run. Its content stays visible; children show their own progress. */ state?: LeoGenerationState | null; label?: string; /** Stops the whole section's run. */ onStop?: () => void; className?: string; children?: React.ReactNode; } /** * LeoGenerationSection — the PARENT in a parent / child run. * * A section that holds other components (a table, a chart, a list). When Leo is * asked to fill the section, the section header shows Leo working (brand * backdrop, status, Stop) while its children stay on screen and show their own * progress — a table adds rows, a chart draws points. Children read the * section's state with `useLeoGenerationScope()`. */ declare function LeoGenerationSection({ title, description, state, label, onStop, className, children, }: LeoGenerationSectionProps): react_jsx_runtime.JSX.Element; export { LeoGenerationSection, type LeoGenerationSectionProps, LeoGenerationStatus, type LeoGenerationStatusProps, LeoGenerationSurface, type LeoGenerationSurfaceProps, LeoStopButton, useLeoGenerationScope };