import type { GoalRecord } from "../core/goals-store.js"; /** * The folder whose git state a window's titlebar shows (branch, uncommitted * files, GitHub, CI, Project Health). Normally the window's cwd. A Goal * window's cwd is the goal's own folder under `~/.gg/goals`, which is not a * repo, so it uses the first attached folder that is inside a git work tree: * the project the goal is actually changing. */ export declare function resolveGitCwd(cwd: string, goal: Pick | null, isRepo?: (dir: string) => Promise): Promise; export interface GitState { branch: string | null; isRepo: boolean; dirtyFileCount: number; gitHubSlug: string | null; } /** Read a folder's git state; each part falls back on its own when git fails. */ export declare function readGitState(dir: string): Promise;