/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { RequestOptions, TaskDetails } from '@elaraai/e3-api-client'; import { type DataTaskPreviewProps } from './DataTaskPreview.js'; export interface TaskPreviewProps { apiUrl: string; repo: string; workspace: string; task: string; requestOptions?: RequestOptions; /** * Chromeless mode: drop the task-name header bar and, for a `ui` task, * render the output edge-to-edge (forwarded to {@link UITaskPreview} as * `bare`) — for a host that shows a deployed UI task as a page of its * own. Default `false`. */ bare?: boolean; /** A data task's tab, controlled: see {@link DataTaskPreviewProps.view}. */ view?: DataTaskPreviewProps['view']; /** Told the tab a data task's switch picks. */ onViewChange?: DataTaskPreviewProps['onViewChange']; /** `false` draws no band anywhere in a data task's preview (#1120, * #1209): see {@link DataTaskPreviewProps.toolbar}. Default `true`. */ toolbar?: boolean; /** A data task's output's key search, controlled: see {@link DataTaskPreviewProps.search}. */ search?: string; /** Told the text of the output's own search box: see {@link DataTaskPreviewProps.onSearchChange}. */ onSearchChange?: (search: string) => void; /** A data task's log's stream, controlled: see {@link DataTaskPreviewProps.logStream}. */ logStream?: DataTaskPreviewProps['logStream']; /** Told the stream the log's tabs pick. */ onLogStreamChange?: DataTaskPreviewProps['onLogStreamChange']; /** A data task's log's search, controlled: see {@link DataTaskPreviewProps.logSearch}. */ logSearch?: string; /** Told the text of the log's own search box: see {@link DataTaskPreviewProps.onLogSearchChange}. */ onLogSearchChange?: (search: string) => void; /** Told the log's matches: see {@link DataTaskPreviewProps.onLogMatchesChange}. */ onLogMatchesChange?: DataTaskPreviewProps['onLogMatchesChange']; /** The handle a host's own controls act through: see {@link DataTaskPreviewProps.controls}. */ controls?: DataTaskPreviewProps['controls']; /** The task's details, when the host holds them — from the task list it * read, say: the preview reads them from the host rather than the * server. Without them, the preview's read is keyed as `useTaskGet`'s, * so a host that read the task through it shares the read all the same. */ details?: TaskDetails; /** How often the task's output status is polled, in milliseconds: a data * task's output preview's, and a ui task's output's. Default 30 000. */ statusPollInterval?: number; /** How often a data task's log is polled while it changes, in * milliseconds: see {@link DataTaskPreviewProps.logPollInterval}. */ logPollInterval?: number; /** The longest a data task's log waits between polls while nothing * changes: see {@link DataTaskPreviewProps.logPollBackoff}. */ logPollBackoff?: number; } export declare const TaskPreview: import("react").MemoExoticComponent<({ apiUrl, repo, workspace, task, requestOptions, bare, view, onViewChange, toolbar, search, onSearchChange, logStream, onLogStreamChange, logSearch, onLogSearchChange, onLogMatchesChange, controls, details: givenDetails, statusPollInterval, logPollInterval, logPollBackoff, }: TaskPreviewProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=TaskPreview.d.ts.map