import { Worktree } from '../types/index.js'; /** * Custom hook for polling git status and commit dates of worktrees with Effect-based execution * * Fetches git status and last commit date for each worktree at regular intervals * using Effect.runPromiseExit and updates worktree state with results. * Both are fetched together so they appear at the same time. * Handles cancellation via AbortController. * * @param worktrees - Array of worktrees to monitor * @param defaultBranch - Default branch for comparisons (null disables polling) * @param updateInterval - Polling interval in milliseconds (default: 5000) * @returns Array of worktrees with updated gitStatus, gitStatusError, and lastCommitDate fields */ export declare function useGitStatus(worktrees: Worktree[], defaultBranch: string | null, updateInterval?: number): Worktree[];