import React, { CSSProperties, Component, ReactNode } from "react"; export interface LinePartCss { foreground?: string | number; bold?: boolean; background?: string; italic?: boolean; underline?: boolean; email?: boolean; link?: boolean; text?: string; wrapLine?: boolean; [key: string]: any; } export interface LinePartProps { /** * The pieces of data to render in a line. Will typically * be multiple items in the array if ANSI parsed prior. */ part: LinePartCss; /** * Style for the line Part */ style?: CSSProperties | undefined; /** * Enable hyperlinks to be discovered in log text and made clickable links. Default is false. */ enableLinks?: boolean; /** * Execute a function against each line part's * `text` property in `data` to process and * return a new value to render for the part. */ format?: ((text: string) => ReactNode) | undefined; /** * Wrap overflowing lines. Default is false */ wrapLines?: boolean | undefined; } /** * An individual segment of text within a line. When the text content * is ANSI-parsed, each boundary is placed within its own `LinePart` * and styled separately (colors, text formatting, etc.) from the * rest of the line's content. */ export default class LinePart extends Component { static defaultProps: { format: null; style: null; enableLinks: boolean; wrapLines: boolean; }; render(): React.JSX.Element; }