import { type CSSProperties } from "react"; import type { TraceFrame } from "../types.js"; export interface RevertExplainerClassNames { /** Outer wrapper. */ root?: string; /** The big revert-reason banner. */ reasonBanner?: string; /** Container for the call chain. */ chain?: string; /** One step in the call chain. */ chainStep?: string; /** The arrow between chain steps. */ chainArrow?: string; /** Indicator on the final (reverting) step. */ revertingStep?: string; /** The success message body when no revert. */ successBody?: string; } export interface RevertExplainerProps { /** Root of the trace. */ frame: TraceFrame; /** Custom message when no revert occurred. */ successMessage?: string; /** Per-slot class names. */ classNames?: RevertExplainerClassNames; /** Inline style on root. */ style?: CSSProperties; /** className on root. */ className?: string; } /** * Compact "why did this revert" view. Locates the innermost reverting * frame, surfaces its revert reason prominently, and shows the breadcrumb * chain from the root frame down to the reverter so the cause is easy to * trace back. * * For a non-reverted trace, renders a success message instead — the * component is safe to drop in unconditionally. */ export declare function RevertExplainer({ frame, successMessage, classNames, style, className, }: RevertExplainerProps): React.JSX.Element; //# sourceMappingURL=RevertExplainer.d.ts.map