import React from 'react'; import { type SyntaxHighlighterProps as NaturalSyntaxHighlighterProps } from 'react-syntax-highlighter'; import { type AllowedAxis, type ThemeMode } from '@dxos/ui-types'; export type SyntaxHighlighterProps = Pick & { themeStyle?: NaturalSyntaxHighlighterProps['style']; /** Picks the built-in light or dark style regardless of the app's mode (default: the app's mode). */ themeMode?: ThemeMode; fallback?: string; copyButton?: boolean; /** * The axes the built-in `ScrollArea` scrolls on (default: all). `false` renders the bare, * non-scrolling leaf for composition inside `Syntax.Viewport`. */ scroll?: AllowedAxis | false; }; /** * Highlighted source inside the family's themed `ScrollArea`, so a long line scrolls with the thin * scrollbar rather than the platform's. Pass `scroll={false}` to get the bare leaf. * * NOTE: Using `light-async` version directly from dist to avoid any chance of the heavy one being loaded. * The lightweight version will load specific language parsers asynchronously. * * https://github.com/react-syntax-highlighter/react-syntax-highlighter * https://react-syntax-highlighter.github.io/react-syntax-highlighter/demo/prism.html */ export declare const SyntaxHighlighter: React.ForwardRefExoticComponent & { classNames?: import("@dxos/ui-types").ClassNameValue; } & Pick, "children" | "role" | "style"> & React.RefAttributes>; //# sourceMappingURL=SyntaxHighlighter.d.ts.map