import React from 'react'; import { type CreateReplacerProps } from '@dxos/util'; import { type SyntaxHighlighterProps } from '../SyntaxHighlighter/index.ts'; export type JsonReplacer = CreateReplacerProps | ((key: string, value: any) => any); export type JsonHighlighterProps = Omit & { data?: any; replacer?: JsonReplacer; /** Indentation passed to `JSON.stringify`. Default: `2` (pretty-printed). Pass `0` for single-line output. */ indent?: number; testId?: string; }; /** * JSON in the family's themed `ScrollArea`: the shorthand for showing a value. * * Thin wrapper around `SyntaxHighlighter` that stringifies `data` with an optional replacer. * `replacer` accepts either `CreateReplacerProps` (declarative truncation) or a raw * `JSON.stringify`-compatible function (for bespoke serialization). `scroll` picks the axes * (default: all). Compose with the `Syntax.*` namespace only for filtering or a depth control. */ export declare const JsonHighlighter: React.ForwardRefExoticComponent & { classNames?: import("@dxos/ui-types").ClassNameValue; } & Pick, "children" | "role" | "style"> & React.RefAttributes>; //# sourceMappingURL=JsonHighlighter.d.ts.map