/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type Ref } from 'react'; import { type LogMatches } from './VirtualizedLogViewer.js'; import type { LogViewerControls } from './preview-controls.js'; import type { RequestOptions } from '@elaraai/e3-api-client'; export interface TaskLogsProps { apiUrl: string; repo: string; workspace: string; task: string; requestOptions?: RequestOptions; /** The stream, controlled: the tabs show it, and a click tells * `onStreamChange` rather than switching (#1209). The view's own, * from `'stdout'`, when not given. */ stream?: 'stdout' | 'stderr' | undefined; /** Told the stream the tabs pick. */ onStreamChange?: ((stream: 'stdout' | 'stderr') => void) | undefined; /** `false` draws no band, and the log fills the view: see {@link VirtualizedLogViewer}. */ toolbar?: boolean | undefined; /** The log's search, controlled: see {@link VirtualizedLogViewer}. */ search?: string | undefined; /** Told the text of the view's own search box. */ onSearchChange?: ((search: string) => void) | undefined; /** Told the match shown and how many there are. */ onMatchesChange?: ((matches: LogMatches) => void) | undefined; /** Given the view's next and previous match and its Copy. */ controlsRef?: Ref | undefined; /** How often the log shown is polled while it changes, in milliseconds. * Default 1000. */ pollInterval?: number | undefined; /** The longest the log shown waits between polls while nothing changes, * in milliseconds; once its execution has ended and it is read, it is * polled every half minute, for another execution. Default 5000. */ pollBackoff?: number | undefined; } /** * Renders a virtualized log viewer for a task's stdout/stderr: the stream * shown is polled, and the other is read when the tabs show it. */ export declare const TaskLogs: import("react").MemoExoticComponent<({ apiUrl, repo, workspace, task, requestOptions, stream, onStreamChange, toolbar, search, onSearchChange, onMatchesChange, controlsRef, pollInterval, pollBackoff, }: TaskLogsProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=TaskLogs.d.ts.map