import React, { CSSProperties, Component, ReactNode } from "react"; export interface LineContentProps { /** * The pieces of data to render in a line. Will typically * be multiple items in the array if ANSI parsed prior. */ data?: any[]; /** * The line number being rendered. */ number: string | number | undefined; /** * Execute a function against each line part's * `text` property in `data` to process and * return a new value to render for the part. */ formatPart?: ((text: string) => ReactNode) | undefined; /** * Execute a function when the line is clicked. */ onClick?(event: React.MouseEvent): void; /** * CSS Style of the LineContent. */ style?: CSSProperties | undefined; /** * Enable hyperlinks to be discovered in log text and made clickable links. Default is false. */ enableLinks?: boolean; /** * Wrap overflowing lines. Default is false */ wrapLines?: boolean | undefined; } /** * The container of all the individual pieces of content that * is on a single line. May contain one or more `LinePart`s * depending on ANSI parsing. */ export default class LineContent extends Component { static defaultProps: { formatPart: null; style: null; }; render(): React.JSX.Element; }