import { renderHome } from './screens/home.js'; type Notice = Parameters[2]; /** * Internal handlers exposed for the unit-test suite. Production code * calls them via `runApp()`, which wires the alt-buffer + signal * lifecycle around the dispatcher loop. The tests skip that envelope * and verify each handler's pure I/O contract against a tmpdir * fixture. Renaming or removing any of these breaks tests but not * production. */ /** * Factory for the SIGINT handler installed by runApp(). Exposed for testing * so the signal lifecycle can be verified without spawning a subprocess or * requiring a real TTY. * * @internal */ declare function makeSigintHandler(restoreBuffer: () => void): () => never; /** * Factory for the SIGTERM handler installed by runApp(). Exposed for testing. * * @internal */ declare function makeSigtermHandler(restoreBuffer: () => void): () => never; export declare const _internal: { refreshUsageOnEntry: typeof refreshUsageOnEntry; handleSwitched: typeof handleSwitched; handleAdd: typeof handleAdd; handleApikey: typeof handleApikey; handleFallbackToggle: typeof handleFallbackToggle; handleReauth: typeof handleReauth; handleRemove: typeof handleRemove; handleProfiles: typeof handleProfiles; handleUsage: typeof handleUsage; makeSigintHandler: typeof makeSigintHandler; makeSigtermHandler: typeof makeSigtermHandler; }; /** * Exposed for testing: runs the home-screen dispatch loop with a * caller-supplied `renderHome` stub. Production code uses `runApp()`, * which wires `renderHome` from `./screens/home.js`. Zero behavior * difference — only the rendering dependency is injected. * * @internal */ export declare function _runDispatchLoop(claudeJsonPath: string, accountsDirPath: string, renderHomeFn: typeof renderHome): Promise; declare function refreshUsageOnEntry(claudeJsonPath: string, accountsDirPath: string): Promise; declare function handleSwitched(payload: { switchedFrom: string | null; switchedTo: string; autoLaunch: boolean; defaultIsolated: boolean; }, accountsDirPath: string): Promise; declare function handleAdd(claudeJsonPath: string, accountsDirPath: string): Promise; declare function handleApikey(claudeJsonPath: string, accountsDirPath: string): Promise; declare function handleFallbackToggle(claudeJsonPath: string, accountsDirPath: string): Promise; declare function handleReauth(claudeJsonPath: string, accountsDirPath: string): Promise; declare function handleRemove(claudeJsonPath: string, accountsDirPath: string): Promise; declare function handleProfiles(accountsDirPath: string): Promise; declare function handleUsage(claudeJsonPath: string, accountsDirPath: string): Promise; export declare function runApp(claudeJsonPath: string, accountsDirPath: string): Promise; export {};