/** * OMX HUD - State file readers * * Reads .omx/state/ files to build HUD render context. */ import type { RalphStateForHud, UltragoalStateForHud, UltraworkStateForHud, AutopilotStateForHud, RalplanStateForHud, DeepInterviewStateForHud, AutoresearchStateForHud, UltraqaStateForHud, TeamStateForHud, HudMetrics, HudNotifyState, HudConfig, HudRenderContext, SessionStateForHud, ResolvedHudConfig, GuardexFinishStateForHud } from './types.js'; interface GuardexFinishStateDependencies { statFile?: (path: string) => Promise<{ mtimeMs: number; }>; } /** Read the newest active GitGuardex branch-finish event stream. */ export declare function readGuardexFinishState(cwd: string, dependencies?: GuardexFinishStateDependencies): Promise; export declare function normalizeHudConfig(raw: HudConfig | null | undefined): ResolvedHudConfig; export declare function readUltragoalState(cwd: string): Promise; export declare function readRalphState(cwd: string): Promise; export declare function readUltraworkState(cwd: string): Promise; export declare function readAutopilotState(cwd: string): Promise; export declare function readRalplanState(cwd: string): Promise; export declare function readDeepInterviewState(cwd: string): Promise; export declare function readAutoresearchState(cwd: string): Promise; export declare function readUltraqaState(cwd: string): Promise; export declare function readTeamState(cwd: string): Promise; export declare function readMetrics(cwd: string): Promise; export declare function readHudNotifyState(cwd: string): Promise; export declare function readSessionState(cwd: string): Promise; export declare function readHudConfig(cwd: string): Promise; export declare function readVersion(): string | null; export type GitRunner = (cwd: string, args: string[]) => string | null; export declare function readGitBranch(cwd: string): string | null; /** * The attached HUD calls this once per second, and each call can spawn up to * four git processes. Reuse the label until HEAD, a ref table or a git config * file changes, or for at most GIT_LABEL_CACHE_TTL_MS. */ export declare function buildGitBranchLabel(cwd: string, config?: ResolvedHudConfig, gitRunner?: GitRunner): string | null; export interface HudLayoutProjection { ultragoalActive: boolean; teamWorkerCount: number; } export declare function readHudLayoutProjection(cwd: string): Promise; /** Read all state files and build the full render context */ export declare function readAllState(cwd: string, config?: ResolvedHudConfig): Promise; export {}; //# sourceMappingURL=state.d.ts.map