import "./result_header.css"; import type * as React from "react"; import type { ReactNode } from "react"; import { useRender } from "@base-ui/react/use-render"; import { type StyleProps } from "./style_props"; import { type HeadingLevel } from "./text"; /** Opens the receipt for what a save-direct run already created; it states and routes, never edits. One * record: `ResultHeader`, a few `DetailRow` lines of identifying figures, and a `Callout` * naming failed checks. Several: an attention-first `ListItem` register pressing through to the records. * A flag is a deterministic verdict the host computed, never a fabricated score. */ export type ResultTone = "ok" | "attention" | "error" | "skipped"; export interface ResultHeaderProps extends StyleProps { /** `attention` when a value is flagged or the item needs the user; `error` when the save failed; * `skipped` when deliberately not processed. Computed by the host, which knows its flags. */ tone: ResultTone; /** Outcome-first: "Created ", "Could not save". */ title: string; /** The failure reason, one line; figures belong in the receipt lines and a failed check in a * `Callout`. */ detail?: string; /** A `Button`: an open-record jump, a retry. */ action?: ReactNode; /** Defaults to 2: the receipt heads its surface. */ level?: HeadingLevel; testID?: string; ref?: React.Ref; render?: useRender.RenderProp; } /** The tone mark inline on the title row, one line under it, the action pinned right; review sections * follow at the same left edge. */ export declare function ResultHeader(props: ResultHeaderProps): React.ReactElement>;