/** * RCS HUD - CLI entry point * * Usage: * rcs hud Show current HUD state * rcs hud --watch Poll every 1s with terminal clear * rcs hud --json Output raw state as JSON * rcs hud --preset=X Use preset: minimal, focused, full * rcs hud --tmux Open HUD in a tmux split pane (auto-detects orientation) */ import type { HudFlags, HudPreset, HudRenderContext, ResolvedHudConfig } from './types.js'; export declare const HUD_USAGE: string; type SleepFn = (ms: number, signal?: AbortSignal) => Promise; export declare function watchRenderLoop(render: () => Promise, options?: { intervalMs?: number; signal?: AbortSignal; onError?: (error: unknown) => void; sleepFn?: SleepFn; }): Promise; interface RunWatchModeDependencies { isTTY: boolean; env: NodeJS.ProcessEnv; readAllStateFn: (cwd: string, config?: ResolvedHudConfig) => Promise; readHudConfigFn: (cwd: string) => Promise; renderHudFn: (ctx: HudRenderContext, preset: HudPreset, options?: { maxWidth?: number; maxLines?: number; }) => string; runAuthorityTickFn: (options: { cwd: string; }) => Promise; writeStdout: (text: string) => void; writeStderr: (text: string) => void; registerSigint: (handler: () => void) => void; setIntervalFn: (handler: () => void, intervalMs: number) => ReturnType; clearIntervalFn: (timer: ReturnType) => void; } /** * Backward-compatible watch mode runner used by tests. */ export declare function runWatchMode(cwd: string, flags: HudFlags, deps?: Partial): Promise; export declare function hudCommand(args: string[]): Promise; /** Shell-escape a string using single-quote wrapping (POSIX-safe). */ export declare function shellEscape(s: string): string; /** * Build the argument array for `execFileSync('tmux', args)`. * * By returning an argv array instead of a shell command string, `cwd` is * passed as a literal argument to tmux (no shell expansion). `rcsBin` is * shell-escaped inside the command string that tmux will execute in a shell. */ export declare function buildTmuxSplitArgs(cwd: string, rcsBin: string, preset?: string, sessionId?: string): string[]; export {}; //# sourceMappingURL=index.d.ts.map