import type { RunActivityEntry } from "@polpo-ai/sdk"; export interface UseTaskActivityReturn { entries: RunActivityEntry[]; isLoading: boolean; error: Error | null; refetch: () => Promise; } /** * Fetch the full activity history for a task from its run JSONL log. * Pass `null` to skip fetching (e.g. when no task is selected). * * When `pollIntervalMs` is set and > 0, the hook will automatically * re-fetch on that interval (useful for live-tailing running tasks). * * The hook avoids unnecessary re-renders by comparing new data against * the current entries (length + last timestamp) before updating state. */ export declare function useTaskActivity(taskId: string | null, options?: { pollIntervalMs?: number; }): UseTaskActivityReturn; //# sourceMappingURL=use-task-activity.d.ts.map