/** * synap statusline — full 3-line ANSI status for the Claude Code statusLine. * * Two modes, both via `synap statusline`: * * RENDER (default) Parse the Claude Code JSON from stdin, read the pod * cache file (NO network), compose 3 ANSI lines, print, * exit. Always instant. If the cache is stale it spawns a * detached refresh (fire-and-forget) so the NEXT render is * fresh — this render never blocks on the network. * * REFRESH (--refresh) Fetch pod data in a single parallel burst and write the * cache. Lock-guarded so only one refresh runs at a time. * On error/429, the last good cache is preserved (the dot * goes stale, not blank). * * Why: Claude Code calls the statusline on every render (debounced ~300ms + * periodic refresh). Fetching live pod data synchronously per render hammers * the pod's 100-req/min budget → 429 → red dot. Decoupling render from fetch * caps pod traffic at ~1 burst / REFRESH_TTL regardless of render frequency. */ export declare function statusline(opts?: { refresh?: boolean; }): Promise;