/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { TaskDetails } from '@elaraai/e3-api-client'; import { type E3Config } from '../platform/e3-config.js'; export interface UITaskPreviewProps { /** Task name (a task whose role is `ui`). */ task: string; /** * Override the surrounding ``'s server identity, or supply one * where there is none. A `workspace` it names must be the one the * surrounding `` serves: `Data.bind` and * `Data.bindPaged` read through process-global runtimes bound to that * workspace, so a page previews one workspace, and a preview whose override * names another shows an error. */ config?: E3Config; /** * Poll interval (ms) for the manifest's declared reads while what they * show changes: the workspace's poll backs off once nothing has, and * comes back to this on a change or when the viewer acts. The cache's * own interval (`ReactiveDatasetProvider`'s `pollIntervalMs`, 1000 ms * unless given) when omitted. */ pollInterval?: number; /** * The longest (ms) the workspace's poll backs off to while nothing the * manifest's reads show changes. The cache's own backoff * (`ReactiveDatasetProvider`'s `pollBackoffMs`, 5000 ms unless given) * when omitted. */ pollBackoff?: number; /** * How often (ms) the output's status is polled, which says when the * task has produced a new value. Default 30 000. */ outputPollInterval?: number; /** The task's details, when the host holds them: the preview reads them * from the host rather than the server. */ details?: TaskDetails; /** * Chromeless mode: drop the padding + scroll wrapper so the ui output * (a page that owns its own layout) fills its container edge-to-edge — * for a host's own page or kiosk embedding. Default `false` * (the padded, scrollable preview wrapper). */ bare?: boolean; } export declare const UITaskPreview: import("react").MemoExoticComponent<({ task, config, pollInterval, pollBackoff, outputPollInterval, details: givenDetails, bare, }: UITaskPreviewProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=UITaskPreview.d.ts.map