/** * Whether the agent is in "Code mode" — the capability toggle that lets the * agent run shell/file/raw-DB tools and edit the app's own source code. This is * distinct from environment dev mode (NODE_ENV / Vite). * * Fetches `/_agent-native/agent-chat/mode` on first call, then stays in sync via * `setCodeMode`. The endpoint, its `devMode` payload key, the `AGENT_MODE` env * var, and the `agent-chat.mode` settings key are unchanged for back-compat. */ export declare function useCodeMode(apiBase?: string): { isCodeMode: boolean; canToggle: boolean; isLoading: boolean; setCodeMode: (codeMode: boolean) => Promise; }; /** * @deprecated Use {@link useCodeMode} instead. The agent-capability "dev mode" * was renamed to "Code mode" to disambiguate it from environment/NODE_ENV dev * mode. This alias preserves the old `{ isDevMode, canToggle, isLoading, * setDevMode }` shape so existing callers keep working; it delegates to the same * shared internal state as `useCodeMode`. */ export declare function useDevMode(apiBase?: string): { isDevMode: boolean; canToggle: boolean; isLoading: boolean; setDevMode: (devMode: boolean) => Promise; }; //# sourceMappingURL=use-dev-mode.d.ts.map