import "./inline_value.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"; interface InlineValueBase extends StyleProps { /** See `FieldSurface.actions`. */ actions?: ReactNode; testID?: string; ref?: React.Ref; render?: useRender.RenderProp; } /** Drawn in the editors' type. */ interface InlineValueTextProps extends InlineValueBase { /** Empty shows `placeholder`. */ value: string; children?: never; /** Default "—". */ placeholder?: string; /** A secondary or derived figure. */ muted?: boolean; /** `right` for numbers. Default `left`. */ align?: "left" | "right"; /** `medium` for a total among plain rows. Default `regular`. */ weight?: "regular" | "medium"; /** Wraps instead of truncating (an address). Single-line by default so rows share a height. */ multiline?: boolean; } /** A `DiffValue`, a chip, a pair. */ interface InlineValueNodeProps extends InlineValueBase { children: ReactNode; value?: never; } export type InlineValueProps = InlineValueTextProps | InlineValueNodeProps; /** * A non-editor value on the inline-control grid, so a total or locked value beside editors keeps * the column's inset. `value` for a string in the editors' type, `children` for a node. * Non-interactive, not a disabled input. */ export declare function InlineValue(props: InlineValueProps): React.ReactElement>; export {};